/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
toIndent.add(e.getChildNodes().item(i));
if ( e.getChildNodes ( ) .item ( i ) instanceof Text ) { toIndent.add ( e.getChildNodes ( ) .item ( i ) ) ; } else { indentChildren = true; toIndent.add ( e.getChildNodes ( ) .item ( i ) ) ; }
} 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> } } if (indentChildren) { for (int i = 0; i < toIndent.size(); i++) { e.insertBefore(e.getOwnerDocument().createTextNode(beforeContent), toIndent.get(i)); }