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>

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 
'UsAddress' is not complete. One of '{"":StreetNumPrefix, "":StreetNumber, 
reetNumberSuffix, "":StreetDirectional, "":StreetName}' is expected.

Can anyone let me know how ti solve this?


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC