摘要:
以下的代码演示了如何使用LINQ to XML来快速创建一个xml:隐藏行号 复制代码 ? 创建 XMLpublic static void CreateDocument(){ string path = @"d:\website"; XDocument xdoc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), new XElement("Root", "root")); xdoc.Save(path);}运行 阅读全文
posted @ 2013-02-26 10:24
冠冕堂皇
阅读(175)
评论(0)
推荐(0)

浙公网安备 33010602011771号