simonchristieis
Programmer
I have an xml file
<aaa>
<bbb>
<name>Billy</name>
<age>34</age>
<telephone>123</telephone>
</bbb>
</aaa>
and am running an xpath query against it, but i cant return specific details
set xmlDoc=CreateObject("Microsoft.XMLDOM"
xmlDoc.async="false"
xmlDoc.load("xml/contact.xml"
i="Billy"
' Xpath Query
set nodes=xmlDoc.selectNodes("aaa/bbb[name='" & i & "']/*"
****** this is where the problem lies
****** I want to return the value of telephone
html = nodes.item('telephone').text
alert(html)
id be grateful for any help
thanks in advance
<aaa>
<bbb>
<name>Billy</name>
<age>34</age>
<telephone>123</telephone>
</bbb>
</aaa>
and am running an xpath query against it, but i cant return specific details
set xmlDoc=CreateObject("Microsoft.XMLDOM"
xmlDoc.async="false"
xmlDoc.load("xml/contact.xml"
i="Billy"
' Xpath Query
set nodes=xmlDoc.selectNodes("aaa/bbb[name='" & i & "']/*"
****** this is where the problem lies
****** I want to return the value of telephone
html = nodes.item('telephone').text
alert(html)
id be grateful for any help
thanks in advance