Jump to content
Sign in to follow this  
Guest HLHLHL

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

Recommended Posts

Guest HLHLHL

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...