摘要: usingSystem.Xml;//初始化一个xml实例XmlDocumentxml=newXmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNoderoot=xml.SelectSingleNode("/root");//获取节点下所有直接子节点XmlNodeListchildlist=root.ChildNodes;//判断该节点下是否有子节点root.HasCh 阅读全文
posted @ 2013-12-22 16:46 搜索中... 阅读(158) 评论(0) 推荐(0) 编辑