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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top