XmlDocument xmlDoc = new XmlDocument();
//获取到xml string xml = context.Request["SBKSCRKB"].Trim();
//读取xml xmlDoc.LoadXml(xml);
//读取xml文件
//xmlDoc.Load("地址"); //查找 根节点 XmlNode root = xmlDoc.SelectSingleNode("data"); //获取到子节点 string STORE = root.SelectSingleNode("子节点").FirstChild.InnerText;
//获取节点存放到集合
//获取到集合节点
XmlNode root_list = root.SelectSingleNode("list_node");
//把节点存储到xml集合里
XmlNodeList list = root_list.ChildNodes;
//循环接收值
foreach (XmlNode xmlNode in list)
{
值 = Convert.ToInt32(xmlNode.SelectSingleNode("子节点").FirstChild.InnerText);
}
context.Response.ContentType = "text/plain";
context.Response.Write(fhz);//想要输出 加上面的那个东西