all groups > dotnet xml > november 2007 >
You're in the

dotnet xml

group:

How to have a choice and sequence in xsd schema


How to have a choice and sequence in xsd schema Jeremy
11/1/2007 1:57:14 PM
dotnet xml:
How can one use a choice and a sequence group in the same schema?

I have 2 child elements that can appear once each but in any order, and 2
child elements that can appear any number of times.

eg

<example>
<child1>Any order, appear once</child1>
<chid2>Any order, appear once</child2>
<chid3>Any order, appear any number of times</child3>
<chid3>Any order, appear any number of times</child3>
<child4>Any order, appear any number of times</child4>
<child4>Any order, appear any number of times</child4>
</example>


AddThis Social Bookmark Button