Set xml = Server.CreateObject ("Microsoft.XMLHTTP"
xml.Open "GET", " false'
xml.send
Set objDom = Server.CreateObject("Microsoft.XMLDOM"
objDom.async = False
objDom.LoadXML (xml.ResponseText)
Set objRoot = objDom.documentElement
resultLength=Cint(objRoot.selectNodes("SITE"
.length)
response.write "There are " & resultLength & " SITE Nodes.<br>"
For iCount= 1 to CInt(resultLength)
set Node = objRoot.selectSingleNode("RESULTS/SITE/[@I=" & CInt(iCount)& "]"
Next
%>
below is the error i get
There are 5 SITE Nodes.
msxml3.dll error '80004005'
Unexpected token '['. RESULTS/SITE/-->[<--@I=1]
/test/xml/feed.asp, line 15
and here's the outline of the xml file
<?xml version="1.0" encoding="ISO-8859-1" ?>
<RESULTS>
<RC>34</RC>
<O>1</O>
<S>5</S>
<SITE I="1">
<SITE I="2">
<SITE I="3">
<SITE I="4">
<SITE I="5">
</RESULTS>
xml.Open "GET", " false'
xml.send
Set objDom = Server.CreateObject("Microsoft.XMLDOM"
objDom.async = False
objDom.LoadXML (xml.ResponseText)
Set objRoot = objDom.documentElement
resultLength=Cint(objRoot.selectNodes("SITE"
response.write "There are " & resultLength & " SITE Nodes.<br>"
For iCount= 1 to CInt(resultLength)
set Node = objRoot.selectSingleNode("RESULTS/SITE/[@I=" & CInt(iCount)& "]"
Next
%>
below is the error i get
There are 5 SITE Nodes.
msxml3.dll error '80004005'
Unexpected token '['. RESULTS/SITE/-->[<--@I=1]
/test/xml/feed.asp, line 15
and here's the outline of the xml file
<?xml version="1.0" encoding="ISO-8859-1" ?>
<RESULTS>
<RC>34</RC>
<O>1</O>
<S>5</S>
<SITE I="1">
<SITE I="2">
<SITE I="3">
<SITE I="4">
<SITE I="5">
</RESULTS>