- From: Ashok Malhotra <ashokma@microsoft.com>
- Date: Fri, 14 Jun 2002 08:23:12 -0700
- To: "Othman Haddad" <ohaddad@neomalogic.com>, "W3C XML Schema Comments list" <www-xml-schema-comments@w3.org>
Received on Friday, 14 June 2002 11:23:44 UTC
If you include an empty element in an XML file it is treated as if its
value were the empty string.
This is not a legal value for 'date', hence the error. Use xsi:nil.
All the best, Ashok
===========================================================
Ashok Malhotra <mailto: ashokma@microsoft.com
<mailto:%20ashokma@microsoft.com> >
Microsoft Corporation
212 Hessian Hills Road
Croton-On-Hudson, NY 10520 USA
Redmond: 425-703-9462 New York: 914-271-6477
-----Original Message-----
From: Othman Haddad [mailto:ohaddad@neomalogic.com]
Sent: Friday, June 14, 2002 8:19 AM
To: W3C XML Schema Comments list
Subject: xsd:date and empty element!
Hi,
i've put in my Schema something like that:
<xsd:element name="iss_date" type="xsd:date" minOccurs="0"/>
and in my XML file:
<iss_date/>
and i get the following message with XMLSPY 4.3: " invalid value for
datatype date in element 'iss_date' ".
somebody knows what's wrong with it ?
Thank you....othman
Received on Friday, 14 June 2002 11:23:44 UTC