Category: XML
xmlHttp / ASP / XSL
Its pretty simple what I need done. I need to pick up an xml file from...
http://www.rjonesx.com/ia/events/data.xml
using xmlHTTP in an ASP script located on a different server,
and have it transformed against a file called data.xsl
I tried this...
<%
Response.Buffer = True
Dim objXMLHTTP, xml
' Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "GET", "http://www.rjonesx.com/ia/events/data.xml";, False
' Actually Sends the request and returns the data:
xml.Send
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(Server.MapPath("../events/events.xsl"))
Response.Write(xml.transformNode(xsl))
%>
BUt it says that transformNode is not acceptable... any ideas?