我有这样的回应:
<?xml version="1.0"?>
<response xmlns="http://xml.test.com">
<test1>
<result1/>
</test1>
</response>
我有这段代码:
For Each node in objXML.selectSingleNode("/response").childNodes
sResult = sResult & node.xml
Next
Response.Write Server.HTMLEncode(sResult)
但是这给了我:
<test1 xmlns="http://xml.test.com"> <result1/> </test1>
我如何才能获得以下内容?:
result1
答案 0 :(得分:0)
试试这个:
For Each node in objXML.selectSingleNode("/response/test1/result1").InnerXml