C#操作XML方法详解
摘要:
C#操作XML方法详细介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNode root=xml.SelectSingleNode("/root");//获取节点下所有直接子节点XmlNodeList childlist=root.ChildNodes;//判断该节 阅读全文
posted @ 2012-09-25 20:49 程序猴chengxuhou.com 阅读(606) 评论(1) 推荐(1)
浙公网安备 33010602011771号