I have this server side code that accepts and xml stream from another page:
here is the xml:
I want to write out all the names and values of all the cell nodes. Something like:
how can I go about doing this?
thanks
ft
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
Code:
Set objXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXmlHttp.open "GET", url,False
objXmlHttp.send
strHTML = objXmlHttp.responseText
set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
set nodeList = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.loadXML (strHTML)
Set Root = xmlDoc.documentElement
Set nodeList = Root.getElementsByTagName("cell")
Set node = xmlDoc.selectSingleNode("/data/item/cell/")
here is the xml:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<data>
<item>
<cell name="ID" value="58261" />
<cell name="field1" value="test" />
<cell name="field2" value="test2" />
<cell name="field3" value="test3" />
</item>
</data>
I want to write out all the names and values of all the cell nodes. Something like:
Code:
For each node in nodelist
response.write(node.Name & " " & node.value)
next
how can I go about doing this?
thanks
ft
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.