Problem in schema Validation. (urgent plz) 2004-03-22 - By Ragunath Marudhachalam
All,
I defined an element in the schema as type integer (like as follows)
<xs:element name="ver" type="xs:integer"/>.
I have the minoccurance as 0 and maxoccurance as 1.
But when i have an element with no value, and i try to validate using xerces parser, i get the following error.
line #53: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '' is not a v alid value for 'integer'. line #53: org.xml.sax.SAXParseException: cvc-type.3.1.3: The value '' of element 'nor' is not valid.
But if i validate in XmlSpy, it gets validated.
Please help me where i'm wrong.
Ragu CircuitVision
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|