摘要: 读: //打开某文件(假设web.config在根目录中)string filename=Server.MapPath("/") + @"WebApplication1\web.config";XmlDocument xmldoc= new XmlDocument();xmldoc.Load(filename);//得到顶层节点列表XmlNodeList topM=xmldoc.DocumentElement.ChildNodes;foreach(XmlElement element in topM){if(element.Name.ToLower()= 阅读全文
posted @ 2011-11-01 11:03 freedom831215 阅读(210) 评论(0) 推荐(0) 编辑