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

xml schema validation using Xerces 2.4.0

From: Anitha Chandran <anithacd@hotmail.com>
Date: Mon, 12 May 2003 15:23:42 +0000
To: xmlschema-dev@w3.org
Message-ID: <Law9-F26wTX5illnpVK00014f85@hotmail.com>

Hi,
I am doing an xml schema validation using xerces 2.4.0.

I have a complex type "USAddress" which has other child elements inside .
Now, this is optional. So sometimes, I get just the tag <USAddress/>.. 
without any child elemets inside.
which is valid, as per the requirements.

I have specified that USAdress is optional ( minOccurs = 0" in my schema- i 
use xmlspy to create and edit schemas.
Irrespective of this, on encountering this tag, i get the following error.

[Error] POCRConvert1.xml:138:19: cvc-complex-type.2.4.b: The content of 
element
'UsAddress' is not complete. One of '{"":StreetNumPrefix, "":StreetNumber, 
"":St
reetNumberSuffix, "":StreetDirectional, "":StreetName}' is expected.

Can anyone let me know how ti solve this?

Thanks,
Anitha.

_________________________________________________________________
IIFA Awards. Vote now. 
http://server1.msn.co.in/msnspecials/iifa2003/index.asp Celebrate Indian 
cinema.
Received on Monday, 12 May 2003 11:47:37 GMT

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