XML-Schema: How can I use a complexType without a certain order of elements?

W

Wolfgang

Hello,

I would like to use the schema, without asking for a certain order.
"Sequence" is therefore not the answers. How can I do this?
I want to use a order like:

C1 E
C2 E D
E C1 D
D C1

etc.

my current schema looks like this:


<xs:element name="AB">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="C1" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="C2" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:element ref="D" minOccurs="0"/>
<xs:element ref="E" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>

Any idea, how I can acomplish this?

Bye,
Wolfgang
 
W

Wolfgang

Thanks,

that was the solution. I ignored it before, because I misinterpreted the use of it.

Bye,
Wolfgang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top