[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] <xs:all> with different elements in any order
Hi all, I want to validate an XML instance like following with W3C XML Schema. <OBJECTS> <!-- A & Bs in any order and unbounded. B can be before A also. --> <A>ddjhfj</A> <B>hghgh</B> <!-- more A & Bs --> </OBJECTS> I want a Schema like (which is invalid) following. <xs:element name="OBJECTS"> <xs:complexType> <xs:all> <xs:element name="A" type="xs:string" maxOccurs="unbounded" /> <xs:element name="B" type="xs:string" maxOccurs="unbounded" /> </xs:all> </xs:complexType> </xs:element> But this is wrong, because in this Schema maxOccurs can be 0 or 1. Could somebody please suggest a Schema for this requirement. -- Regards, Mukul Gandhi
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|