Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Schema: inheritance with variable order of childs

From: Sven <sven@---.---.-->
To: 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.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent