W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

RE: date and empty element!

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Fri, 14 Jun 2002 08:23:12 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB019EED3E@red-msg-12.redmond.corp.microsoft.com>
To: "Othman Haddad" <ohaddad@neomalogic.com>, "W3C XML Schema Comments list" <www-xml-schema-comments@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT