?
=?ISO-8859-1?Q?L=FCpher_Cypher?=
Hi,
I'm trying to have a sequence which will validate both of the following
XMLs:
<root>
<a>text</a>
<b>text</b>
<c>text</c>
<c>text</c>
...
<c>text</c>
<d>text</d>
<d>text</d>
...
<d>text</d>
<e>...</e>
</root>
and
<root>
<a>text</a>
<b>text</b>
<d>text</d>
<d>text</d>
...
<d>text</d>
<c>text</c>
<c>text</c>
...
<c>text</c>
<e>...</e>
</root>
So, I have
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="a" type="xs:string" />
<xs:element name="b" type="xs:string" />
???
<xs:element name="e" type="sometype" />
</xs:sequence>
</xs:complexType>
</xs:element>
Is there a way to say that each of <c> and <d> can appear a number of
times (like in <xs:sequence><xs:elem name="c" minOccurs="0"
maxOccurs="unbounded" /></xs:sequence>) but the order in which they
appear does not matter? In other words, there may be zero or more <c>
tags followed by zero or more <d> tags, or zero or more <d> tags
followed by zero or more <c> tags.
Thanks,
luph
I'm trying to have a sequence which will validate both of the following
XMLs:
<root>
<a>text</a>
<b>text</b>
<c>text</c>
<c>text</c>
...
<c>text</c>
<d>text</d>
<d>text</d>
...
<d>text</d>
<e>...</e>
</root>
and
<root>
<a>text</a>
<b>text</b>
<d>text</d>
<d>text</d>
...
<d>text</d>
<c>text</c>
<c>text</c>
...
<c>text</c>
<e>...</e>
</root>
So, I have
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="a" type="xs:string" />
<xs:element name="b" type="xs:string" />
???
<xs:element name="e" type="sometype" />
</xs:sequence>
</xs:complexType>
</xs:element>
Is there a way to say that each of <c> and <d> can appear a number of
times (like in <xs:sequence><xs:elem name="c" minOccurs="0"
maxOccurs="unbounded" /></xs:sequence>) but the order in which they
appear does not matter? In other words, there may be zero or more <c>
tags followed by zero or more <d> tags, or zero or more <d> tags
followed by zero or more <c> tags.
Thanks,
luph