This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic