JavaScript获取XML中的节点,XML是SOAP格式的
<?xml version= "1.0 " encoding= "utf-8 "?>
<soap:Envelope xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd= "http://www.w3.org/2001/XMLSchema ">
<soap:Body>
<GetMilesResponse xmlns= "http://localhost/Distance ">
<GetMilesResult> 94043,94133,31.583133472635 </GetMilesResult>
</GetMilesResponse>
</soap:Body>
</soap:Envelope>
怎样获取XML中GetMilesResult节点中的值?我怎么试了都取不到值。
------解决方案--------------------js操作xml不熟~不过跟是不是soap没什么关系,反正soap格式的xml也是xml~~
------解决方案--------------------参考:
http://community.csdn.net/Expert/topic/5482/5482700.xml?temp=.7972986