Hi, i'm trying to run an .asp page to get an xml file off a server.
I need to know what object to create. My page just runs till timeout...it
bombs on the httpxml.send command. This is the code I have:
set httpxml = Server.CreateObject("Msxml2.XMLHTTP.3.0")
httpxml.open "GET", "http://www.txdps.state.tx.us/mpch/sb1063.xml", false
' get the requested XML data from the remote location
' change the URL as per your feed.
httpxml.send
' save the XML in objXML as XML
set XML = httpxml.responseXML
'Load the XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("txdot.xsl"))
if (objXSL.readyState = 4 AND objXSL.parseError.errorCode = 0) then
Response.Write(xml.transformNode(xsl))
else
'if an error occurs, report it
Response.Write "Error: " & objXSL.parseError.reason & "<br> URL:" &
objXSL.url
end if
set httpxml=nothing
set xml=nothing
set xsl=nothing
Do I need to install something???
i am running xp pro