W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

RE: xml schema validation using Xerces 2.4.0

From: Colin Mackenzie <colin@elecmc.com>
Date: Mon, 12 May 2003 18:55:18 +0100
To: "Anitha Chandran" <anithacd@hotmail.com>
Cc: <xmlschema-dev@w3.org>

if this is the requirement you must change the contents of the USAddress to
be optional e.g.

<xs:compleType name="USAddress">
	<xs:sequence minOccurs="0">
		<xs:element name="StreetNumPrefix"/>
		<xs:element name="StreetNumber"/>
		etc etc

this will allow either <USAddress/> or

or you can allow each sub item to be optional

<xs:compleType name="USAddress">
		<xs:element name="StreetNumPrefix" minOccurs="0"/>
		<xs:element name="StreetNumber" minOccurs="0"/>
		etc etc

-----Original Message-----
From: xmlschema-dev-request@w3.org
[mailto:xmlschema-dev-request@w3.org]On Behalf Of Anitha Chandran
Sent: 12 May 2003 17:21
To: xmlschema-dev@w3.org
Subject: RE: xml schema validation using Xerces 2.4.0

Thanks Colin,
What you said is right, I will not get a parsing error if the node is
But as per the requirement, I get a noce <USAddress/> in case nothing is
So i need a way to handle that.
Is there a way to do that?


Want to get married? Try online matrimony.
http://server1.msn.co.in/features/onlinematrimony/index.asp It's cool.
Received on Monday, 12 May 2003 14:01:11 UTC

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