W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Question about complexType with unordered child elements with at least one child element

From: Anna A. Yacubovitch <Anna@locationet.com>
Date: Thu, 21 Jun 2001 10:19:49 +0200
Message-ID: <C634935CAE85C74FA1AAD89A72A666CD062D6A@exchangeback.AD.LOCATIONET.COM>
To: <xmlschema-dev@w3.org>
Hello!
I need some help.
I need a type that allows any order of child elements, every element can
appear no more than a single time. 

<xsd:complexType name="ApplicationRequest">
		<xsd:all>
			<xsd:element name="PermissionRequestSet"
type="xsd:string" minOccurs="0"/>
			<xsd:element name="LocationRequestSet"
type="xsd:string" minOccurs="0"/>
			<xsd:element name="MapRequestSet"
type="xsd:string" minOccurs="0"/>
			<xsd:element name="InfoRequestSet"
type="xsd:string" minOccurs="0"/>
			<xsd:element name="GeoCodeRequestSet"
type="GeoCodeRequestSet" minOccurs="0"/>
			<xsd:element name="GeoItemsRequestSet"
type="xsd:string" minOccurs="0"/>
			<xsd:element name="RouteRequestSet"
type="xsd:string" minOccurs="0"/>
		</xsd:all>
</xsd:complexType>
<xsd:element name="ApplicationRequest" type="ApplicationRequest">

The problem is that I don't want to get validation on
<ApplicationRequest>
</ApplicationRequest>

I need at least one child element.

Thanks

Anna Yacubovitch
Anna@locationet.com
Received on Thursday, 21 June 2001 03:21:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:21 GMT