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" ?>
<image name="img1.jpg">img1.jpg</image>
<image name="img2.jpg">img2.jpg</image>
<image name="img3.jpg">img3.jpg</image>

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

function loadXMLDoc(dname)
if (window.XMLHttpRequest)
xhttp=new XMLHttpRequest();
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
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.


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

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 ?