- 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 </xs:sequence> </xs:complexType> this will allow either <USAddress/> or <USAdress> <StreetNumPrefix></StreetNumPrefix> <StreetNumber></StreetNumber> </USAdress> or you can allow each sub item to be optional <xs:compleType name="USAddress"> <xs:sequence> <xs:element name="StreetNumPrefix" minOccurs="0"/> <xs:element name="StreetNumber" minOccurs="0"/> etc etc </xs:sequence> </xs:complexType> -----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 removed. But as per the requirement, I get a noce <USAddress/> in case nothing is there So i need a way to handle that. Is there a way to do that? Thanks, Anitha. _________________________________________________________________ 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