/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
if ( elem.getChildNodes( ).item( i) instanceof Text) {
if ( e.getChildNodes ( ) .item ( i ) instanceof Text ) {
} String beforeContent = s.toString(); ArrayList<Node> toIndent = new ArrayList<Node>(); boolean indentChildren = false; for (int i = 0; i < e.getChildNodes().getLength(); i++) { if (i == 1) indentChildren = true; <extra_id_0> toIndent.add(e.getChildNodes().item(i)); } else { indentChildren = true; toIndent.add(e.getChildNodes().item(i)); } }