The validation of <b>optional</b> XML-elements of type = "xsd:string" seems to differ fom elements of type = "xsd:date". Why don't they behave the same?
When i validate my XML-document against a schema where i have defined an element of type = "xsd:string" as optional, the following elements are accepted:
1) the element is missing
2) the empty element <element/>
3) the empty element <element></element>
Validation of optional elements of type = "xsd:date" results in error-messages from the XML-parser for cases 2) and 3) (the empty elements).
I would like to be able to include empty elements <element/> of both string and date types. How can i accomplish this?
Environment:
- 9iEE r 9.2.0.1 patched to r 9.2.0.5 (on MS Windows2000)
- XML-parser delivered with this database.
I use the validation routine described in another forum posting. see:
255021
thanks, Bart