[xsd-users] How to iterate different childs of a node together

Thomas Müller th.mueller at weisang.com
Wed Mar 29 12:00:53 EST 2006


Hi,

I have an element that basically looks like this:

	<xs:element name="item">
	     	<xs:complexType>
            	<xs:choice minOccurs="0" maxOccurs="unbounded">
                  	<xs:element name="subitem1">
					<xs:complexType>
						...
                    		</xs:complexType>
                  	</xs:element>
	                  <xs:element name="subitem2">
      				<xs:complexType>
						....
					</xs:complexType>
                  	</xs:element>
			</xs:choice>
		</xs:complexType>
	</xs:element>

The generated iterators allow to iterate over all nodes of type subitem1 and
subitem2 separately. 
Is there an easy way to iterate over all subitem-nodes (subitem1 and
subitem2) in the sequence of their occurence?

Thanks for your help,
Thomas





More information about the xsd-users mailing list