/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
this.node.insertChildrenAt((index + 1), toInsert);
if ( index != -1 ) { this.node.insertChildrenAt ( index + 1, toInsert ) ; }
XML insertChildAfter(XML child, Object xml) { if (child == null) { prependChild(xml); } else { XmlNode[] toInsert = getNodesForInsert(xml); int index = getChildIndexOf(child); <extra_id_0> } return this; } XML setChildren(Object xml) { if (!isElement()) return this; while (this.node.getChildCount() > 0) {