Guest HLHLHL Posted January 10, 2010 Share Posted January 10, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.