Hi,

same case for e.g. 'xs:int' and 'xs:float'. Is there a switch for the validator to handle empty values ? Or any other ideas ?

Ender



O'Keeffe, Michael wrote:
With String datatypes, if the element has an attribute with minOccurs="0",
and the tag is there in the XML, but there is no value, validation is
successful.


However, when I run schema validation where the tag is there but the value
is empty, I will get a schema validation error.  Here is an example:

Here's the schema fragment:
<element name="FOO_DATE" minOccurs="0" type="date" />


Here a fragment of the XML with FOO_DATE:
                <FOO_DATE/>

Here is the error:
cvc-type.3.1.3: The value '' of element 'FOO_DATE' is not valid.

The only way this will successfully validate is if the tag <FOO_DATE/> is
not in the xml document at all.

Is this the way it is supposed to work?  It doesn't seem consistent with
other datatypes.

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



.................................................................
Ender �zg�r            neofonie GmbH        Tel: +49.30.24627-329
Softwareentwicklung    Robert-Koch-Platz 4  FAX: +49.30.24627-120
[EMAIL PROTECTED]    D-10115 Berlin       Web: www.neofonie.de



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to