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