Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XML Schema: inheritance with variable order of childs >Thread Next - Re: XML Schema: inheritance with variable order of childs Re: XML Schema: inheritance with variable order of childsTo: NULL Date: 11/5/2007 3:20:00 AM > In this simplistic case you could use xs:all; e.g.: > > <xs:complexType name="TextItemType"> > <xs:all> > <xs:element name="Name" type="xs:string" /> > <xs:element name="Content" type="xs:string" /> > </xs:all> > </xs:complexType> > I already wondered about xs:all but I did not understand it really yet. What is the intention of xs:all? Is it just the same like xs:sequence with having no strict order? But in xs:all all elements have to be present exactly one time, right? There is no possibility to define optional or multiple elements?! By the way, why is s sequence the main collection type? I can see no reason for a strict order of the child elements anyway. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
