B
Bjorn Brox
Using Compact Framework 3.5
The application that is recieving XML files from my application
requires that the file starts with the line
<?xml version="1.0" encoding="windows-1252" ?>
How do I ensure that DataSet.WriteXml(x) outputs this header?
The code I use today is:
XmlTextWriter xml = new XmlTextWriter(tmp_filename,
Encoding.GetEncoding(1252));
ds.WriteXml(xml);
xml.Close();
But as you guess the Xml header is missing, probably because
the filesystem encoding is 1252 (I have also tried Encoding.Default)
The application that is recieving XML files from my application
requires that the file starts with the line
<?xml version="1.0" encoding="windows-1252" ?>
How do I ensure that DataSet.WriteXml(x) outputs this header?
The code I use today is:
XmlTextWriter xml = new XmlTextWriter(tmp_filename,
Encoding.GetEncoding(1252));
ds.WriteXml(xml);
xml.Close();
But as you guess the Xml header is missing, probably because
the filesystem encoding is 1252 (I have also tried Encoding.Default)