1
Answer

XML Serialize - keep HTML, preserve Space

onez

onez

19y
2.8k
1
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?
Answers (1)