Question about DataSet.WriteXML method.

K

Ken Varn

I have a DataSet in which one row contains a column with a string that has
CR or LF characters in it. I am converting this DataSet to XML by calling
DataSet.WriteXml(). I would have expected CR and/or LF characters to be
translated to numeric character entry values. Instead, they are written out
as absolute. How can I ensure that all special characters are translated
properly when calling WriteXml?


--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
A

Andrew Conrad

CR and LF characters are valid Xml characters so there is no need to
translate to numeric characters - hence there is no functionality in the
DataSet as such.
The only way to get this sort of functionality is to manually preprocess
the column values and replace the characters manually.

Andrew Conrad
 

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