Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: [XML Schema 1.1] Using doc() in xs:assert ... the referenced document needs a schema? [Thread Next] Alternative tags in element?To: "xmlschema-dev@--.---" <-------------@--.---> Date: 5/1/2009 8:07:00 AM Hi, I've just started working with XML Schema, so please forgive me if the an= swer to my question is obvious. I want to create an element, say "Foo" that contains a sequence of elemen= ts which have different tags, say "Bar" and "Glob". So these would be legal: <Foo><Glob/><Bar/></Foo> <Foo><Bar/><Glob/></Foo> <Foo><Bar/><Glob/><Bar/></Foo> In the complexType for Foo elements, can you specify that it contains a seq= uence of alternative elements, in arbitrary order? Or do I have to create a wrap= per element for the alternatives and place them in a union? Any help welcome ... -- Paul -- Paul Steckler National ICT Australia paul DOT steckler AT nicta.com.au= From gkholman@C... Sun May 03 02:22:37 2009 Received: from bart.w3.org ([128.30 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
