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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSD problem

Status
Not open for further replies.

Ratters1

Programmer
Jul 10, 2006
1
GB
I have to elements that can appear in a XML file i recieve.

This would be valid

<a>data</a>
<b>data</a>

So would this be valid

<a/>
<b/>

This would not be valid

<a/>
<b>data</b>

Also it should be valid for both not to appear at all in the XML file who can I achieve this ??

THA
 
It is not easy... What have you tried sofar? Let's say show us the more elementary stuff in place like how do you validate empty element and nonempty element?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top