var iMax = 6
var rssDoc = new ActiveXObject("Microsoft.XMLDOM")
rssDoc.async = false
var headNode = rssDoc.selectNodes("/rss/channel")
var itemNodes = rssDoc.selectNodes("/rss/channel/item")
iMax = itemNodes.length
var feedBody = ""
feedBody = feedBody + "<p><a href='" + itemNodes.item(i).getElementsByTagName("link").item(0).text + "'>" + itemNodes.item(i).getElementsByTagName("title").item(0).text + "</a></p>"
myFeeds.innerHTML = feedBody
myChannel.innerText = headNode.item(0).getElementsByTagName("title").item(0).text
We have capped number of articles to display in variable iMax, loaded the xml file into the DOM and used simple HTML dom scripting to display the contents of the xml file.
You might find out however that while the script works well on your local domain it might not work so easily if you dumped it on a page hosted by your ISP. This is because by default some browsers (IE for example) have security settings which disallow "cross-domain file access." Surfers to your page will have to edit their internet security settings to allow cross domain file access.
To learn more about IE's security context please go to http://msdn.microsoft.com