S
Sandy
Hi,
I want to write one element definition which can contain any number of "A"
or "B" subelements in the XML file in any order.
e.g. the following xml should be allowed
<rootelement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file.xsd">
<A/>
<A/>
<B/>
<A/>
<B/>
<B/>
</rootelement>
How do i write a .xsd to validate this form of XML
<xs:element name="rootelement">
<xs:complexType>
<xs:????? minOccurs="0" maxOccurs="unbounded">
<xs:element ref="A"/>
<xs:element ref="B"/>
</xs:?????>
</xs:complexType>
</xs:element>
I want to write one element definition which can contain any number of "A"
or "B" subelements in the XML file in any order.
e.g. the following xml should be allowed
<rootelement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file.xsd">
<A/>
<A/>
<B/>
<A/>
<B/>
<B/>
</rootelement>
How do i write a .xsd to validate this form of XML
<xs:element name="rootelement">
<xs:complexType>
<xs:????? minOccurs="0" maxOccurs="unbounded">
<xs:element ref="A"/>
<xs:element ref="B"/>
</xs:?????>
</xs:complexType>
</xs:element>