I need to convert from DataSet to XML and back. I use the WriteXML() in C#. When a field(s) in a dataset is empty, there will be no equivalent xml tag in the xml file.
I am not sure what happens when it is converted back?
For example I might get:
<books>
<book>
<title>J2ME</title>
<author>Sun</author>
<isbn>8997766</isbn>
</book>
<book>
<title>MS Outlook</title>
</book>
<book>
<title>C# cookbook</title>
<isbn>6778887</isbn>
</book>
</books>
Whereas I really need:
<books>
<book>
<title>J2ME</title>
<author>Sun</author>
<isbn>8997766</isbn>
</book>
<book>
<title>MS Outlook</title>
<author></author>
<isbn></isbn>
</book>
<book>
<title>C# cookbook</title>
<author></author>
<isbn>6778887</isbn>
</book>
</books>
Does anyone know how?
thank you
I am not sure what happens when it is converted back?
For example I might get:
<books>
<book>
<title>J2ME</title>
<author>Sun</author>
<isbn>8997766</isbn>
</book>
<book>
<title>MS Outlook</title>
</book>
<book>
<title>C# cookbook</title>
<isbn>6778887</isbn>
</book>
</books>
Whereas I really need:
<books>
<book>
<title>J2ME</title>
<author>Sun</author>
<isbn>8997766</isbn>
</book>
<book>
<title>MS Outlook</title>
<author></author>
<isbn></isbn>
</book>
<book>
<title>C# cookbook</title>
<author></author>
<isbn>6778887</isbn>
</book>
</books>
Does anyone know how?
thank you