/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
for ( int i = 0; i < nodes.getLength ( ) ; i++ ) { if ( nodes.item ( i ) instanceof Element ) { list.add ( ( Element ) nodes.item ( i ) ) ; }
for (int i = 0; i < toIndent.size(); i++) { e.insertBefore(e.getOwnerDocument().createTextNode(beforeContent), toIndent.get(i)); } } NodeList nodes = e.getChildNodes(); ArrayList<Element> list = new ArrayList<Element>(); <extra_id_0> } for (Element elem : list) { beautifyElement(elem, indent + prettyIndent); } if (indentChildren) { e.appendChild(e.getOwnerDocument().createTextNode(afterContent));