M
MaxMax
I want to insert a white line between XML elements to raise human
readability
example:
<MyNode>
</MyNode>
<MyNode>
</MyNode>
<MyNode>
</MyNode>
How should I do it? I'm creating the XML using XmlDocument and inserting the
nodes. I tried inserting white space using for example:
xmlDoc.DocumentElement.AppendChild(xmlDoc.CreateSignificantWhitespace("\r\n\r\n\r\n"));
but after doing this command the formatting of the remaining XML is screwed
(there isn't any automatic end of line/indenting of the other elements of
the XML file)
Thanks!
readability
example:
<MyNode>
</MyNode>
<MyNode>
</MyNode>
<MyNode>
</MyNode>
How should I do it? I'm creating the XML using XmlDocument and inserting the
nodes. I tried inserting white space using for example:
xmlDoc.DocumentElement.AppendChild(xmlDoc.CreateSignificantWhitespace("\r\n\r\n\r\n"));
but after doing this command the formatting of the remaining XML is screwed
(there isn't any automatic end of line/indenting of the other elements of
the XML file)
Thanks!