Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem validating optional elements of type xs:string and xs:date?!

ow008057Jul 28 2004 — edited Aug 27 2004
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2004
Added on Jul 28 2004
8 comments
1,206 views