Re: XmlSerializer - Indent as tab instead of spaces

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thank you for your advise using the XmlWriterSettings.

But the set Indent get lost, if I say something like that:

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(stringWriter.ToString());
xmlDoc.Save(file);

Any idea how to say the XmlDocument to preserve the set indent?

Thank you,
Norbert
.



Relevant Pages