/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
Element copy = ( Element) this.dom.cloneNode( false) ;
Element copy = ( Element ) this.dom.cloneNode ( true ) ;
void replaceWith(XmlNode other) { Node replacement = this.dom.getOwnerDocument().importNode(other.dom, true); this.dom.getParentNode().replaceChild(replacement, this.dom); } String ecmaToXMLString(XmlProcessor processor) { if (this.isElementType()) { <extra_id_0> Namespace[] inScope = this.getInScopeNamespaces(); for (int i = 0; i < inScope.length; i++) { declareNamespace(copy, inScope[i].getPrefix(), inScope[i].getUri()); } return processor.ecmaToXmlString(copy); } else {