Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi using xml i generated an xsd using xsd option by command prompt .But now the problem is passing xml been changed and now the xml nil =true contains as below

<beneficiary_address_line_1 xsi:nil="true" xmlns:xsi="#unknown">


but my xsd is like this


XML
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="artners" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="artners" nillable="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="artner" nillable="true">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" type="xs:string" minOccurs="1" msdata:Ordinal="0" />
....

now my xsd throwing the following error plz tell me how to solve this errro




If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute must not be present in the instance
Posted

1 solution

This[^] is how you research an error message. It seems clear enough to me. If your schema says not to support nillable, you can't use it.
 
Share this answer
 
Comments
Ch3shireDev 30-Mar-23 7:24am    
Congrats, it's literally the first result from Google, and you refer me to Google to find answer to it.
Christian Graus 30-Mar-23 7:37am    
I gave a clear answer as well as pointing out it was a simple question. How many years ago???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900