首页 > 代码库 > 读取xml

读取xml

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

 


读取xml