[Home] [By Thread] [By Date] [Recent Entries]
Title: RE: XML Question Saurabh, I'll try my best to answer your question without an example of your schema. If you are using the "sequence" compositor, the elements must appear in the XML instance document in the order in which they are declared in the schema. For example: <xsd:complexType name="SomeType">
So if you are using the "sequence" compositor, you will want to change it to the "all" compositor. The "all" compositor allows the elements declared within it to appear in the XML instance document in any order. For example: <xsd:complexType name="SomeType">
If this doesn't suffice, I would recommend you consider the "wildcard" feature of W3C Schema (although this may be a bit extreme for your purposes). The wildcard feature uses an "any" construct for elements (and an "anyAttribute construct for attributes) to create a "placeholder" at which any well-formed XML may appear in an instance document - i.e. it does not specify element/attribute declarations or datatype definitions. In the following example, the element "ThirdElement" may be (does not have to be) followed in an XML instance document by one or more elements: <xsd:complexType name="SomeType">
Hope this helps,
-----Original Message-----
Hi
regards,
-----------------------------------------------------------------
The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription
|

Cart



