title: xmlDoc.getElementsByTagName("tiles").hasChildNodes is not a function?
body: <p>Alright, so I'm getting this error <code>xmlDoc.getElementsByTagName("tiles").hasChildNodes is not a function</code> from this code: <code>xmlDoc.getElementsByTagName("tiles").hasChildNodes()</code>.</p>
  
  <p>Now I've been using tutorials, and they're all saying this should work, so what am I doing wrong?</p>
  
  <p>Edit:
  xml file:</p>
  
  <pre><code>&lt; ?xml version="1.0" encoding="UTF-8" ?&gt; 
  &lt;level&gt;
      &lt;tiles&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1000000000000001&lt;/row&gt;
          &lt;row&gt;1111111111111111&lt;/row&gt;
      &lt;/tiles&gt;
  &lt;/level&gt;
  </code></pre>