the xml file has this
<root>
<content image="image.gif" title="some text in here" footer="footer text here" >
Info text here as well.
</content>
</root>

inside the function,
var items = req.responseXML.getElementsByTagName("content");
for (var i = 0; i < items[0].childNodes.length; i++)
{
if (items[0].childNodes[i].nodeType != ELEMENT_NODE) continue;
imgAlt[i] = items[0].childNodes[i].getAttribute('footer');
imgSrc[i] = items[0].childNodes[i].getAttribute('image');
var limg = document.createElement('img');
limg.setAttribute('alt', imgAlt[i]);
limg.setAttribute('src', imgSrc[i]);
document.getElementById("image").appendChild(limg); document.getElementById("heading").innerHTML=xmlDoc.getAttribute("title")[0].childNodes[0].nodeValue;
document.getElementById("footer").innerHTML=xmlDoc.getAttribute("footer")[0].childNodes[0].nodeValue;
//document.getElementById("wrap").innerHTML=txt;
}

am calling the above function on page load...

what am i missing out here...please help. thank you in advance.