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]