摘要: 代码: 1 //创建容器。 2 XmlDocument doc = new XmlDocument(); 3 4 //将空的文档加载到XNL文件。 5 6 doc.LoadXml(""); 7 8 //将找到的根节点进行存储。 9 10 XmlNode root = doc.SelectSingleNode("A"); 11 12 //创建相应的元素。 13 14 XmlElement B = doc.CreateElement("B"); 15 16 XmlElement C =... 阅读全文
posted @ 2014-03-18 11:18 ATS-IT-MES 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 1.引用System.configuration.dll2.using System.configuration3.利用ConfigurationManager.AppSettings[" "];即可获得此元素的值eg. 阅读全文
posted @ 2014-03-18 09:57 ATS-IT-MES 阅读(870) 评论(0) 推荐(0) 编辑