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.