XML 学习之保存节点
XmlDocumnet WriteTo 方法
说明:
保存xmldocument对象节点到xmlwriter(即xml文件写入流)
实例:
public static void WriteXml( XmlDocument doc )
{
XmlTextWriter writer = new XmlTextWriter(Console.Out);
writer.Formatting = Formatting.Indented;
doc.WriteTo( writer );
writer.Flush();
Console.WriteLine();
}