|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Schema for unordered elements, with additional requirements
Here's what I'd like to do, but <xs:all> does not allow maxOccurs="unbounded" and it doesn't accept <xs:any> elements. <xs:element name="root"> <xs:complexType> <xs:all> <xs:element name="foo" /> <xs:element name="bar" /> <xs:element name="zzz" maxOccurs="unbounded" /> <xs:any namespace="##other" processContents="skip" maxOccurs="unbounded" /> </xs:all> </xs:complexType> </xs:element> Here are the requirements: 1. Elements can appear in any order. 2. Elements foo, bar, and zzz are required. 3. Element zzz can appear more than once. 4. Elements from other namespaces are allowed but ignored. I have tried various combinations of <xs:sequence> and <xs:choice> and <xs:group> elements with various minOccurs and maxOccurs values, but haven't been able to meet all the requirements. Is it possible with XML Schema? Thanks, -rh
[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! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|
|||||||||







