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....othmanReceived on Friday, 14 June 2002 11:23:44 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:30 GMT