我有一个XmlDocument,我想以漂亮的打印字符串形式获得内容(OuterXml)。我该怎么做呢?
问候
发布于 2010-03-15 22:43:59
假设我没弄错
using System.Xml.Linq;
XDocument xDoc = XDocument.Load(@".....\test.xml");
string xDocString = xDoc.ToString(SaveOptions.None);https://stackoverflow.com/questions/2447176
复制相似问题