PDA

View Full Version : schema element at any place


angiras
01-26-2004, 12:02 PM
I have the following schema (xsd)

<xs:element name="subMenuBar">
<xs:complexType>
<xs:sequence>
<xs:element ref="item" maxOccurs="unbounded"/>
<xs:element ref="separator" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>

but I want to be able to put in any order item or separator

item
separator
item
item


and with this schema actually I can only put the separator after all items


what is the xsd syntax for it ?

thank you