Re: XmlSerializer - Indent as tab instead of spaces
- From: Norbert Pürringer <thalion77@xxxxxxxxxxxx>
- Date: Wed, 18 Jun 2008 04:28:56 -0700 (PDT)
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
.
- Follow-Ups:
- Re: XmlSerializer - Indent as tab instead of spaces
- From: Martin Honnen
- Re: XmlSerializer - Indent as tab instead of spaces
- From: Jon Skeet [C# MVP]
- Re: XmlSerializer - Indent as tab instead of spaces
- References:
- XmlSerializer - Indent as tab instead of spaces
- From: Norbert Pürringer
- Re: XmlSerializer - Indent as tab instead of spaces
- From: Adam Benson
- Re: XmlSerializer - Indent as tab instead of spaces
- From: Jon Skeet [C# MVP]
- XmlSerializer - Indent as tab instead of spaces
- Prev by Date: Printing problem using - System.Diagnostics.ProcessStartInfo startInfo
- Next by Date: Re: Take care of decimal gaps
- Previous by thread: Re: XmlSerializer - Indent as tab instead of spaces
- Next by thread: Re: XmlSerializer - Indent as tab instead of spaces
- Index(es):
Relevant Pages
|