XML Serialize - keep HTML, preserve Space
public void SearializeToXML(string file)
{
XmlSerializer mySerializer = new XmlSerializer(typeof(M_Table));
StreamWriter myWriter = new StreamWriter(file);
mySerializer.Serialize(myWriter, this);
myWriter.Close();
}
The output changes the innertext of the elements <> tags to &glt etc.
Also, how do I preserve all of the whitespace?