#region 读取xml文件指定节点下的值 XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(result); XmlNode root = xmlDoc.SelectSingleNode("//response"); if (root != null) { string error = (root.SelectSingleNode("error")).InnerText; } #endregion
#region 读取xml文件指定节点下的值 XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(result); XmlNode root = xmlDoc.SelectSingleNode("//response"); if (root != null) { string error = (root.SelectSingleNode("error")).InnerText; } #endregion
转载于:https://www.cnblogs.com/kongxiaoshuang/p/6512328.html