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

Choice between two elements with a same name and different types

From: Anna A. Yacubovitch <Anna@locationet.com>
Date: Sun, 24 Jun 2001 10:25:24 +0200
Message-ID: <C634935CAE85C74FA1AAD89A72A666CD11352E@exchangeback.AD.LOCATIONET.COM>
To: <xmlschema-dev@w3.org>
Hello.(Sorry for the previous message without subject)
I need some help...
I have to choose between 3 elements, 2 of them are  with the same name
but different type.
The following part of schema chooses Address or  only the first
Coordinate.
<xsd:complexType name="GeoCodeRequest">
		<xsd:choice>
                  <xsd:element name="Address" type="Address"/>
		      <xsd:element name="Coordinate"
type="UTMCoordinate"/>
                    <xsd:element name="Coordinate"
type="LatLonCoordinate"/>
		</xsd:choice>
</xsd:complexType>

Thanks a lot
Anna Yakubovitch
anna@locationet.com
Received on Sunday, 24 June 2001 03:27:36 GMT

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