读XML文件
XML文件格式如下
<appSettings>
<add key="webservice_url" value="http://localhost:1885/Acmeway.Business.Webservices/Service.asmx" />
<\appSettings>
怎么读出http://localhost:1885/Acmeway.Business.Webservices/Service.asmx信息
------解决方案--------------------
XmlDocument doc = new XmlDocument();
doc.Load(file);
XmlNode node = doc.SelectSingleNode("/appSettings/add");
Console.WriteLine(node.Attributes["value"].Value);