/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
} removeChild( index) ;insertChildAfter( childToReplace, xml) ;
insertChildAfter ( childToReplace, xml ) ; removeChild ( index ) ; }
} } XML replace(int index, Object xml) { XMLList xlChildToReplace = child(index); if (xlChildToReplace.length() > 0) { XML childToReplace = xlChildToReplace.item(0); <extra_id_0> return this; } XML prependChild(Object xml) { if (this.node.isParentType()) { this.node.insertChildrenAt(0, getNodesForInsert(xml)); }