//string转xml XmlDocument doc = new XmlDocument(); doc.LoadXml(temp); XmlNodeList nodes1 = doc.GetElementsByTagName("SOAP-ENV:Body"); string Result = ""; string Detail = ""; foreach (XmlElement element in nodes1)//遍历任何子节点 { Result = element.GetElementsByTagName("Result")[0].InnerText; Detail = element.GetElementsByTagName("Detail")[0].InnerText; }