I have an xml and it has nodes with i:nil="true" in it. What does that mean?
For example:
<FirstName i:nil="true" />
Does that mean something different than:
<FirstName />
If so, what is the difference?
Synopsis. The xsi:nil attribute indicates that a certain element does not have a value or that the value is unknown. This is not the same as having a value that is zero or the empty string.
Ways to represent a null value In an XML document, the usual way to represent a null value is to leave the element or attribute empty. Some business messages use a special value to represent a null value: <price>-999</price> . This style of null representation is supported by the DFDL and MRM parsers.
This means FirstName is null
<FirstName i:nil="true" />
This means FirstName = ""
<FirstName />
Assumption made on FirstName is of string type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With