Hi, I have a question regarding XSD. I have this format in my xsd:
<xs:element name="someName">
<xs:complexType>
<xs:sequence>
<xs:element ref="id"/>
<xs:element ref="firstName"/>
<xs:element ref="lastName"/>
</xs:sequence>
</xs:complexType>
</xs:element>
So this xml is good:
<someName>
<id>43</id>
<firstName>first name</firstName>
<lastName> last name</lastName>
</someName>
However, if the firstName and lastName element is switched around like this:
<someName>
<id>43</id>
<lastName> last name</lastName>
<firstName>first name</firstName>
</someName>
Then the schema will not recognize it. Is there a way to allow any ordering? Thanks a lot.
<xs:element name="someName">
<xs:complexType>
<xs:sequence>
<xs:element ref="id"/>
<xs:element ref="firstName"/>
<xs:element ref="lastName"/>
</xs:sequence>
</xs:complexType>
</xs:element>
So this xml is good:
<someName>
<id>43</id>
<firstName>first name</firstName>
<lastName> last name</lastName>
</someName>
However, if the firstName and lastName element is switched around like this:
<someName>
<id>43</id>
<lastName> last name</lastName>
<firstName>first name</firstName>
</someName>
Then the schema will not recognize it. Is there a way to allow any ordering? Thanks a lot.