xmlnullxml-nil

What does i:nil="true" mean?


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?


Solution

  • This means FirstName is null

    <FirstName i:nil="true" />
    

    This means FirstName = ""

    <FirstName />
    

    Assumption made on FirstName is of string type.