onez

onez

  • NA
  • 73
  • 0

XML Serialize - keep HTML, preserve Space

Feb 15 2005 6:28 AM
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)