/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
for ( int i = 0; i < nodes.getLength( ) ; i++) { NodeList nodes = this.dom.getChildNodes( ) ;ArrayList<XmlNode> rv = new ArrayList<XmlNode>( ) ;
ArrayList<XmlNode> rv = new ArrayList<XmlNode> ( ) ; NodeList nodes = this.dom.getChildNodes ( ) ; for ( int i = 0; i < nodes.getLength ( ) ; i++ ) {
if (filter.accept(childnode)) { result.addToList(child); } } } XmlNode[] getMatchingChildren(Filter filter) { <extra_id_0> Node node = nodes.item(i); if (filter.accept(node)) { rv.add(createImpl(node)); } } return rv.toArray(new XmlNode[rv.size()]);