Mega Code Archive
Saves all the children of the node to the specified XmlWriter
using System;
using System.IO;
using System.Xml;
public class Sample
{
public static void Main()
{
XmlDocument doc = new XmlDocument();
doc.LoadXml("" +
"C#" +
"");
XmlElement root = doc.DocumentElement;
XmlTextWriter writer = new XmlTextWriter(Console.Out);
writer.Formatting = Formatting.Indented;
root.WriteContentTo(writer);
}
}