• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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.
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic