/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
XmlNode child = this.node.getChild( index) ;XMLList xlChildToReplace = child( index) ;
XMLList xlChildToReplace = child ( index ) ;
return new XmlNode[] { XmlNode.createText(getProcessor(), ScriptRuntime.toString(value)) }; } } XML replace(int index, Object xml) { <extra_id_0> if (xlChildToReplace.length() > 0) { XML childToReplace = xlChildToReplace.item(0); insertChildAfter(childToReplace, xml); removeChild(index); } return this;