• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

XML Schema : handling null values

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I want to handle null values according to the XML Schema Spec, i.e. using the following definition :
<xsd:element name="MYDATE" type="xsd:date" nillable="true" />
and then in the XML doc :
<MYDATE xsi:nil="true"/>
To validate my document, I'm using XML Spy 4.0 beta 2 which uses MSXML Parser (I installed v4.0) I guess.
My problem is that I get an error message : "Invalid value for date in element MYDATE". Checking the MSXML Parser doc I found that sometimes "nillable" appears as "nullable" and "nil" as "nill".
Is there a problem with MS implementation here ? Should I try another validating parser ? I don't think I have namespace problem in my shema.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic