Hi There,
Pardon me , if it sounds too naive. I have a simple xml file carrying the file names of some images. I made it in notepad.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<gallery2>
<image name="img1.jpg">img1.jpg</image>
<image name="img2.jpg">img2.jpg</image>
<image name="img3.jpg">img3.jpg</image>
</gallery2>

Using the following function, I can comfortably open the xml file

//____________________________________________
function loadXMLDoc(dname)
{
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET",dname,false);
xhttp.send();
return xhttp.responseXML;
}

//____________________________________________

And then I can capture the response here in the main body of the script to process the XML file. My objective is to count the images in the x.length line.

//____________________________________________
xmlDoc=loadXMLDoc(xml_file);

var x=xmlDoc.getElementsByTagName("image");
var num_images=x.length;
alert(num_images);

Can someone help please ??
The problem is FF returns 3 here but IE returns zero and so does Chrome.
Is it one of those white-space issues that IE does not detect as node ?