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