I would like to share with you people a simple xml to html parser i found when working on a related project.
It contains two files. The xmlParser.asp and xmlStyle.xslt
The xmlParser.asp
[code lang=”asp”]
<%
response.ContentType="text/html"
dim objXML, objXSL
set objXML=server.CreateObject("MSXML2.DOMDocument")
set objXSL=server.CreateObject("MSXML2.DOMDocument")
objXML.async=False
objXSL.async=False
objXML.setProperty "ServerHTTPRequest",true
objXML.load "http://domain.com/rss_url"
objXSL.load Server.MapPath("xmlStyle.xslt")
response.write ""
response.write objXML.transformNode(objXSL)
response.write ""
set objXML=nothing
set objXSL=nothing
%>
[/code]
xmlStyle.xslt
[code lang=”css”]
[/code]