Question about DataSet.WriteXML method.

  • Thread starter Thread starter Ken Varn
  • Start date Start date
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
-----------------------------------
 
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
 
Back
Top