读取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  阅读(153)  评论(0)    收藏  举报