DataSet.WriteXml cutting off first 3 characters

sde

Well-known member
Joined
Aug 28, 2003
Messages
160
Location
us.ca.fullerton
When I call DataSet.WriteXml(), it writes the file, but the first 3 characters are cut off.

example:
Code:
nfigs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <config></config>
</cofigs>

it is correct before i read the xml, but when it goes to write the xml, it cuts <co off the root node. any ideas why this might be happening?
 
nm, i had the file open in an external editor. the charset must have changed to utf-8 from what it was originally and the file needed to be re-opened.
 
Back
Top