XmlDocument xdoc = new XmlDocument(); xdoc.Load("K:\\xml.xml"); XmlNode xn = xdoc.SelectSingleNode("/configuration/appSettings/add[@key='UserPwd']"); string pwd = xn.Attributes[1].Value.ToString();
XmlDocument xdoc = new XmlDocument(); xdoc.Load("K:\\xml.xml"); XmlNode xn = xdoc.SelectSingleNode("/configuration/appSettings/add[@key='UserPwd']"); string pwd = xn.Attributes[1].Value.ToString();