mui如何解析XML
落叶飘
- 发布:2014-11-27 22:02
- 更新:2019-06-26 11:11
- 阅读:3247
mui如何解析XML
分类:HTML5+
Lisenod
http://www.w3school.com.cn/xmldom/dom_parser.asp这里精彩
2018-09-07 09:50
小伟2018
按照浏览器解析方式不行呀,我用的是mui模板:仿照ajax请求xml可以返回数据,也可以变成字符串,但是我访问的是soap协议的webservice,返回数据如:<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><ns1:webLoginResponse xmlns:ns1="http://127.0.0.1:8098/ntcisys/"><ns1:out>{"DATA":{"bankAccountNum":"0828010400001341","bankName":"农行北京科技园区支行","company":"北京恒力铭电子技术有限公司","id":"402881e5576e738901576e76bdbe0001","legalPerson":"","linkAddress":"北京市昌平区科技园区白浮泉路10号2号楼 北控大厦218-D室","linkPerson":"","phone":"69761255","postCode":"102200","proxyPerson":"","proxy_loginName":"bjhl","proxy_loginPass":"QUkGOcHbMFDJfnBbadTKQg==","proxy_passKey":"b14a474c79b14808afb13f7b2d994da1","recordTime":{"date":16,"day":1,"hours":8,"minutes":53,"month":9,"nanos":67000000,"seconds":11,"time":1508115191067,"timezoneOffset":-480,"year":117},"recordUser":"1"},"STATUS":"SUCCESS"}</ns1:out></ns1:webLoginResponse></soap:Body></soap:Envelope>,但是解析不出来,解析节点的时候是null
2018-09-07 10:13
4***@qq.com
回复 小伟2018:我也遇到了相同的问题 怎么解决啊
2019-06-26 11:11