日期:2014-05-18 浏览次数:20943 次
- <Process> <Info>QQ.exe</Info> <Info>sqlservr</Info> <Info>vmnat</Info> </Process>
XmlDocument xds = new XmlDocument(); xds.Load(Application.StartupPath+"\\app.xml"); XmlNodeList nodes = xds.SelectNodes("Process"); foreach(XmlNode xn in nodes) { listView2.Items.Add(xn.Value); }
XmlNode node = xds.SelectSingleNode("Process"); foreach (XmlNode xn in node.ChildNodes) { listView2.Items.Add(xn.InnerText); }