• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic