Simple Easy to use ASP XML/RSS Parser

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”]







  • _blank



  • [/code]

    Published by

    Varun Krish

    Varun Krish has been dabbling with computers and websites for almost 2 decades. He has traveled to over 30 countries and hopes to visit every country on earth one day. He is currently the Editor-in-Chief of FoneArena.com and also advises startups and product companies on how to build better products. You can follow him on @varunkrish

    Leave a Reply

    Your email address will not be published.