/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
addTextNodesToRemoveAndTrim( 0, document) ;
addTextNodesToRemoveAndTrim ( list, document ) ;
for (Node node : list) { node.getParentNode().removeChild(node); } } if (ignoreWhitespace) { List<Node> list = new java.util.ArrayList<Node>(); <extra_id_0> for (Node node : list) { node.getParentNode().removeChild(node); } } NodeList rv = document.getDocumentElement().getChildNodes(); if (rv.getLength() > 1) {