Ways to declare an element without a type?

Hi Folks,

This element does not specify a type:

	<element name="foo" />

Consequently, in instance documents the content of <foo> can be any elements and any text.

I am trying to create an XPath expression that, when evaluated, returns all element declarations in a schema file that do not specify a type.

Here's the XPath expression that I created:

	//xs:element[	not(@type) and 
			not(xs:simpleType) and 
			not(xs:complexType) and 
			not(@ref) and 
			not(@fixed)]

Will that catch all the elements? Are there any "edge cases" that it misses?

/Roger

Received on Thursday, 19 November 2015 20:34:51 UTC