Hi all,
I want to write a schema for the following example xml file:
<Items>
<ItemA>hehe</ItemB>
<ItemB>haha</ItemB>
</Items>
So far as my knowledge about xml schema, I can write the following
schema:
<element name="Items">
<complexType>
<sequence>
<element name="ItemA" type="string"/>
<element name="ItemB" type="string"/>
</sequence>
</complexType>
</element>
The problem is that, in this definition, the order of ItemA and
ItemB is fixed. If I want to make the order make no sense, in another
words, ItemB is allowed to appear before ItemA, how can I define the
schema?
This seems a simple question, but I really get confused. Thanks
for suggestion.