xml validity with xsd with xsi:nillable element
Posted
by Laxmikanth Samudrala
on Stack Overflow
See other posts from Stack Overflow
or by Laxmikanth Samudrala
Published on 2010-03-13T23:27:38Z
Indexed on
2010/03/16
18:11 UTC
Read the original article
Hit count: 354
My XML file
<tns:SampleInfoResponse xsi:schemaLocation="sampleNS test.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="sampleNS">
String String String String String String String String String String String String
MY XSD file
<xsd:schema targetNamespace="sampleNS" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="sampleNS" xmlns="http://www.w3.org/2001/XMLSchema">
parser is complaining on <tns:LSampleEnrlDetails/>, the XML file should be <tns:LSampleEnrlDetails xsi:nil="true"/> only for valid file ? By taking out the whole tag
also the parser is complaining.
I would like to know what possible cases for this tag makes the XML file valid according the above schema when i don't have the data to populate for tag
© Stack Overflow or respective owner