Jump to content

How To Allow One Or More Elements Out Of Three Element That Required


Guest HLHLHL
 Share

Recommended Posts

Hello all,I have this schema definition:<xs:complexType name="Main"> <xs:sequence minOccurs="1" maxOccurs="3"> <xs:element name="Element1" minOccurs="0" maxOccurs="1" type="fd:Element1"> </xs:element> <xs:element name="Element2" minOccurs="0" maxOccurs="1" type="fd:Element2"> </xs:element> <xs:element name="Element3" minOccurs="0" maxOccurs="1" type="fd:Element3"> </xs:element> </xs:sequence></xs:complexType>this definition will allow me to setup xml files with the following sequences:<Main>1. Element1 alone2. Element2 alone3. Element3 alone4. Element1, Element25. Element1, Element36. Element2, Element37. Element1, Element2, Element38. No Element at all</Main>My problem is that I don't want to allow the option 8.How can i do it?Thank you very much

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...