Re: [xml-dev] Fwd: [katrina-dev] Looking for XML Schema advice

From
Jeff Rafter <>
To
Bill Humphries <>
Date
2005-09-07T01:14:54Z
ID
<>
Thread
Re: [xml-dev] Fwd: [katrina-dev] Looking for XML Schema advice
>> Is there any other way to allow an element to have subelements in
>> any order, with one of those elements occurring possibly many times?
>> If it isn't possible to express this in XML Schema, that would be good
>> to know too.
>>
>> Thanks for your help.

Hi Bill,

<xs:choice maxOccurs="unbounded">
   [elements]
</xs:choice>

Is your only option in XML Schema. In RelaxNG you can use an interleave 
to accomplish exactly what you want-- but in XML Schema the xs:all 
element is limited exactly as you/Ping have discovered.

All the best,
Jeff Rafter