标签:
string path = Server.MapPath("/imt.xml");
XDocument doc = XDocument.Load(path);
XNamespace ns = doc.Root.Name.Namespace;
var root = doc.Element(ns + "man");
var organization = root.Element(ns + "orgs").Element(ns + "org");
var resources = root.Element(ns + "ress").Elements(ns + "res");
标签:
原文地址:http://www.cnblogs.com/Rannie/p/4633654.html