The javascript is
function loadXMLDoc()
{
  xmlhttp=new XMLHttpRequest();
  xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
      x=xmlhttp.responseXML.documentElement.getElementsByTagName("CALL");
      txt=x + x.length;
      document.getElementById("myDiv").innerHTML=txt;
    }
  }
xmlhttp.open("GET","ajax/calls.xml",true)
xmlhttp.send();
}
The response (seen by firebug) is
<?xml version="1.0" encoding="ISO-8859-1"?>
<CALL>
  <ID>0</ID>
</CALL>
I expect it to print something like "[0],1" (i.e. a list with one element, and the length of the list), but instead it prints "[object NodeList]0", so it doesn't see any "CALL" elements at all. What's going wrong? Thanks.