Changing sequence of mixed elements

Hai people,

I'd looked at the Primer doc, hacked my schema but did not found the proper
implementation of the following problem (yet). I hope somebody can help me:

The following schema-part.....

    <xsd:complexType name="testType" mixed="true">
                <xsd:sequence>        
                    <xsd:element name="pA" type="xsd:string"
maxOccurs="unbounded"/>
                    <xsd:element name="pB" type="xsd:string"
maxOccurs="unbounded"/>
                </xsd:sequence>        
    </xsd:complexType>

.........causes the next (part of) XML to validate correctly, but.....

<test>   
    <pA> haidiho 1A</pA>
    <pA> haidiho 2A</pA>
    <pB> haidiho 1B</pB>
</test>

........causes the next (part of) XML to validate with an *ERROR* (invalid
content starting with element 'pb'...)

<test>   
    <pB> haidiho 1B</pB>
    <pA> haidiho 1A</pA>
    <pA> haidiho 2A</pA>
</test>   

(I'm using Xerces200 for parsing)

Can anybody tell me the proper implementation of the schema part?


Thank you all,

Erwin.


Erwin Staalsmid
OVSoftware, Netherlands
Erwin.Staalsmid@OVSoftware.com



**********************************************************************
As you are aware, e-mails sent via Internet can easily be prepared or
manipulated by third persons. For this reason we trust you will understand
that, for your own and our protection, we rule out the legal validity of the
foregoing statements and comments. The applicable regulations of OVSoftware
on the legal validity of declarations of intent of a binding nature remain
unaffected.
This message is confidential. It may also be privileged or otherwise
protected by legal rules. It may be unlawful for you to read, copy or use it
in any way. If you have received it by mistake please let us know by reply
and then delete it from your system.

Received on Friday, 9 November 2001 04:03:38 UTC