Hi MOJO,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to save the xml document to a
file which is encoded with ISO-8859-1 format. If there is any
misunderstanding, please feel free to let me know.
We can see that XmlDocument.Save has an overload public virtual void
Save(TextWriter);. We can create a StreamWriter and set the encoding of
that StreamWriter to achieve this. Here is an example:
xmlDocument.Save(new StreamWriter(filename, false,
System.Text.Encoding.GetEncoding("ISO-8859-1")));
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."