You must declare your element to be nillable [1]. The lexical space [2] of
integer [3] does not permit empty space.
[1] http://www.w3.org/TR/xmlschema-1/#nillable
[2] http://www.w3.org/TR/xmlschema-2#cvc-datatype-valid
[3] http://www.w3.org/TR/xmlschema-2/#integer
Thanks,
--
Elena Litani / IBM Toronto
"Ragunath Marudhachalam" <[EMAIL PROTECTED]> wrote on
03/22/2004 05:33:06 PM:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]