Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

What if a "xs:date" is null?

843834May 26 2004 — edited Sep 22 2006

Hi, all.

This question is probably trivial, but I couldn't find any informationa about it.

The XML response required by the consumer of the web service I'm building contains several "xs:date" required fields.
Some of them can't be returned by my application, so I'd like to return an "empty" date for them (the equivalent of empty string for "xs:string").

If I return "0000-00-00" the XML is not validated by its XSD (Out Of Range Exception).

The question is:
do I have to make an agreement with the costumer (let's say: "1900-01-01 corresponds to the empty date) or there's something defined about it?

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2006
Added on May 26 2004
5 comments
864 views