title: Can't call getElementsByTagName on a node in Xerces or Neko?
body: <p>hi all I'm trying to parse a DOM tree using Neko/Xerces in Java. </p>
  
  <pre><code>NodeList divs = this.doc.getElementsByTagName("DIV");
  for(int i=0; i &lt; divs.getLength(); i++) {
      NodeList images = divs.item(i).parentNode().getElementsByTagName("IMG");
      // operate on these
  }
  </code></pre>
  
  <p>is what I'd ideally like to do. It seems I can only call <code>getElementsByTagName</code> on the document itself? Am I doing something wrong? Should I be able to call that on a <code>Node</code> element?  </p>
  
  <p>I can see from the docs it's not there: <a href="http://xerces.apache.org/xerces-j/apiDocs/org/w3c/dom/Node.html" rel="noreferrer">http://xerces.apache.org/xerces-j/apiDocs/org/w3c/dom/Node.html</a> so maybe I need to do it another way?</p>
  
  <p>thanks!</p>