• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Three Optional Fields in a XML file but at least on of them is required

 
ismail hassani
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:

I'am trying to implement a validation rule for an XML file,in wich three elements element 1,element2 and element3 are optional,but it's necessary to have at least one of them.

<xs:element name="element1" minOccurs="0" maxOccurs="unbounded">
....
<xs:element name="element2" minOccurs="0" maxOccurs="unbounded">
.....
<xs:element name="element2" minOccurs="0" maxOccurs="unbounded">[/i]

Is it possible to implement this validation rule in XSD ?

Thank you
Ismail.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic