读取xml

var xmlDoc = new XmlDocument();
xmlDoc.Load(fatalFile);
var s = xmlDoc.SelectNodes("configuration/appSettings/add[@key='KeyName']")[0].Attributes["value"];

 


posted on 2015-01-20 13:21  harrell  阅读(139)  评论(0编辑  收藏  举报