OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
<xs:all> with different elements in any order

Hi all,
   I want to validate an XML instance like following with W3C XML Schema.

  <!-- A & Bs in any order and unbounded. B can be before A also. -->
  <!-- more A & Bs -->

I want a Schema like (which is invalid) following.

<xs:element name="OBJECTS">
          <xs:element name="A" type="xs:string" maxOccurs="unbounded" />
          <xs:element name="B" type="xs:string" maxOccurs="unbounded" />

But this is wrong, because in this Schema maxOccurs can be 0 or 1.

Could somebody please suggest a Schema for this requirement.

Mukul Gandhi

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS