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");
时间: 2024-09-26 23:23:38