/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
if ( node.getParentNode( )  != null) {
if ( node.getChildNodes ( ) != null ) {
} } if (text.getData().length() == 0) { toRemove.add(node); } } <extra_id_0> for (int i = 0; i < node.getChildNodes().getLength(); i++) { addTextNodesToRemoveAndTrim(toRemove, node.getChildNodes().item(i)); } } } final Node toXml(String defaultNamespaceUri, String xml) throws org.xml.sax.SAXException {