zoukankan      html  css  js  c++  java
  • 带URL的XML解析方式

    XmlDocument xml = new XmlDocument();
    xml.LoadXml(responseString);
    XmlNode root = xml.DocumentElement;
    XmlNamespaceManager nsp = new XmlNamespaceManager(xml.NameTable);
    nsp.AddNamespace("soapenv", "http://schemas.xmlsoap.org/soap/envelope/");
    nsp.AddNamespace("ns2", "http://service.ws.webservice.sajt");
    nsp.AddNamespace("ns1", "http://service.ws.webservice.sajt/xsd");
    XmlNode root2 = root.SelectSingleNode("ns1:status", nsp);
    XmlNode root4 = root.SelectSingleNode("soapenv:Body", nsp);
    XmlNode root5 = root4.SelectSingleNode("ns2:saveDocumentResponse", nsp);
    XmlNode root6 = root5.SelectSingleNode("ns2:return", nsp);
    XmlNode root7 = root6.SelectSingleNode("ns1:status", nsp);
  • 相关阅读:
    oracle学习13
    oracle学习12
    oracle学习11
    oracle学习10
    CodeForces
    CodeForces
    UVA
    poj3320 Jessica's Reading Problem
    poj2456 Aggressive cows
    jQuery 鼠标滚轮插件 mousewheel
  • 原文地址:https://www.cnblogs.com/xujunbao/p/8093503.html
Copyright © 2011-2022 走看看