I wrote this simple DOM script that pulls the data off of an XML atom feed and displays it. The script works great in everything except for IE 5.5 and 6 which get an error and refuse to load it. How can I get IE 5.5 or 6 to load this script or make it work? Here is a live example too.

main code:
<html>
<head>
<script type="text/javascript" src="javascript/loadxmldoc.js"></script>
<script type="text/javascript" src="javascript/atomnewsfeed.js"></script>
</head>
<body>

<script type="text/javascript">
// Load XML document
xmlDoc=loadXMLDoc("atom.xml");
atomnewsfeed ();
</script>
</body>
</html>


loadxmldoc.js
function loadXMLDoc(dname)
{
var xmlDoc;
if (window.XMLHttpRequest)
{
xmlDoc=new window.XMLHttpRequest();
xmlDoc.open("GET",dname,false);
xmlDoc.send("");
return xmlDoc.responseXML;
}
// IE 5 and IE 6
else if (ActiveXObject("Microsoft.XMLDOM"))
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load(dname);
return xmlDoc;
}
alert("Error loading document");
return null;
}

atomnewsfeed.js
function atomnewsfeed () {
// Set variable to 0 and begin blog counting
var blogEntry = 0;
if (blogEntry < 3)
var i = blogEntry;
while (i < 3) {
// Grab blog values
title=xmlDoc.getElementsByTagName("entry")[i].getElementsByTagName("title")[0].childNodes[0];
date=xmlDoc.getElementsByTagName("entry")[i].getElementsByTagName("published")[0].childNodes[0];
author=xmlDoc.getElementsByTagName("entry")[i].getElementsByTagName("name")[0].childNodes[0];
summary=xmlDoc.getElementsByTagName("entry")[i].getElementsByTagName("summary")[0].childNodes[0];

// Display blog values
document.write("<h1>" + title.nodeValue + "</h1>", "<p>" + date.nodeValue.substr(0, 10) + "</p>", "<p>" + author.nodeValue + "</p>", "<p>" + summary.nodeValue + "</p>");
i++;
}
}

XML sheet link