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

Wolfgang (3)

Usenet Archive
Joined
Apr 25, 2003
Messages
5
Reaction score
0
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
 

Wolfgang (3)

Usenet Archive
Joined
Apr 25, 2003
Messages
5
Reaction score
0
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
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top