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