Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

random optional elements

Status
Not open for further replies.

lexul

Programmer
May 10, 2007
5
RO
Is there a way to specify in a xsd schema that i want to allow some optional subtags in any random order(each occuring at most once), and at least one of them(no matter which) to be present?
Example(this should be validated by the xsd schema)

<parent>
<child1/>
<child2/>
</parent>

<parent>
<child2/>
<child1/>
</parent>

<parent>
<child2/>
</parent>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top