title: getElementsByTagName is returning empty list in Chrome (but not in firefox)
body: <p>I have js function which is trying to set XMLDoc object and also setting one of the global parameter (modelingDiagram).</p>
  
  <p>While trying to get elements by tag name, it is returning always empty list (but not in firefox). 
  During debugging I come to know that it is returning empty list for any tag that I try in watch area - 
      xmlDoc.getElementsByTagName('Processes'); OR xmlDoc.getElementsByTagName("desc");</p>
  
  <p>Following is the js function. Commented area indicates where I got the exception.</p>
  
  <pre><code>function setXmlDoc(text)
  {
  if (window.ActiveXObject){
                var doc=new ActiveXObject('Microsoft.XMLDOM');
                doc.async='false';
                doc.loadXML(text);
  } else {
                var parser=new DOMParser();
                var doc=parser.parseFromString(text,'text/xml');
  }
  
  xmlDoc = doc;
  modelingDiagram = xmlDoc.getElementsByTagName('Processes')[0].getElementsByTagName('ModelingDiagram');
  //Uncaught TypeError: Cannot call method 'getElementsByTagName' of undefined
  }
  </code></pre>
  
  <p>text variable contains xml in string format- </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Processes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name=""&gt;
    &lt;Process&gt;
      &lt;desc value="Z45 Accounting"&gt;Z45 Accounting&lt;/desc&gt;
      &lt;height value="541"&gt;541&lt;/height&gt;
      &lt;width value="411"&gt;411&lt;/width&gt;
      &lt;xval value="50"&gt;50&lt;/xval&gt;
      &lt;yval value="50"&gt;50&lt;/yval&gt;
      &lt;Flowelements&gt;
     ....
     ....
     ....
  </code></pre>
  
  <p>I could not able to make out what is that Chrome is expecting here to get the proper list?</p>