W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

XML Schema question

From: Petetsky, Alexander <petetsky@aware.com>
Date: Mon, 5 Mar 2007 14:11:21 -0500
Message-ID: <A510FC6F6EC01246A3E8DB00221C43321A89FB@aware.com>
To: <xmlschema-dev@w3.org>

Hi all,
I have a problem I am trying to find a solution/work around for.
One of the elements in my schema by design must consist of either one child elements or a group of  elements with absolutely no restriction on the order within this group. So, ideally it would look something like the following (though I understand it is invalid):
<xs:complexType name="Parent">
             <xs:element name="E0" type="xs:int" minOccurs="1" maxOccurs="unbounded"/>
	 <xs:all minOccurs="0">
               <xs:element name="E1" type="xs:string" />
               <xs:element name="E2" type="xs:string" />
               <xs:element name="E3" type="xs:string" />

Any ideas?

Received on Monday, 5 March 2007 23:39:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:12 UTC