Problem with DataSet & XML

A

alien

One of the cells in my DataSet is just a single space (" "). When I call
DataSet.WriteXml, and then view the xml file in an editor, that cell is
written properly - it's a single space. But when I load the file again by
calling DataSet.ReadXml, that cell is loaded as the empty string. No space.
Anyone know what can be done about this?

Thank you.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

You can try loading the DataSet from an XmlTextReader, and to play with the
WhitespaceHandling property for that XmlTextReader.
 
A

alien

Thanks, but I tried that. No change.

Dmitriy Lapshin said:
Hi,

You can try loading the DataSet from an XmlTextReader, and to play with the
WhitespaceHandling property for that XmlTextReader.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top