XmlDocument doc = new XmlDocument();
doc.LoadXml(sreturn);
XmlNode xNode = doc.SelectSingleNode("LisCallResponse/ResponseHead/Success");//取is_success节点的值
string is_success = xNode.InnerText;
XML格式信息如下:
<?xml version="1.0" encoding="GBK"?>
<LisCallResponse>
<ResponseHead>
<Success>Y</Success>
<Msg>保存成功</Msg>
</ResponseHead>
<ResponseBody>
</ResponseBody>
</LisCallResponse>