Forum Moderators: open
I am familiar with using Carp on a .php page but how do I do it in .asp? Is there a similiar script?
(It's not .NET, just .asp if that helps.)
sourceFile = "http://www.example.com/rss.xml"
styleFile = Server.MapPath("newsfeed.xsl")
Set xmlhttp = Server.CreateObject("MSXML2.SERVERXMLHTTP")
xmlhttp.Open "GET", sourceFile, false
xmlhttp.Send
set source = Server.CreateObject("MSXML2.DOMDocument")
source.async = false
source.loadxml(xmlhttp.ResponseText)
set style = Server.CreateObject("MSXML2.DOMDocument")
style.async = false
style.load(styleFile)
Response.Write source.transformNode(style)
Art