all groups > dotnet xml > february 2004 >
You're in the

dotnet xml

group:

Null values and XML


Null values and XML Naveed Anwar Kharadi
2/26/2004 5:03:53 PM
dotnet xml:
Hi,

Is there any way by which null values of a dataset's table can be
represented in its XML.

Regards.

Re: Null values and XML Daniel D.C. [MSFT]
3/1/2004 2:00:22 AM
Two very common conventions are:
- absence (assuming a table called customer, with id=5, name=null, age=30 ):
<customer>
<id>5</id>
<age>30</age>
</customer>
(no name element)
- use xsi:nill like this (assuming a table called customer, with id=5,
name=null, age=30 ):
<customer>
<id>5</id>
<name xsi:nill="true" />
<age>30</age>
</customer>

--
Daniel D.C. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights

[quoted text, click to view]

AddThis Social Bookmark Button