/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
if ( this.isCommentType( ) ) {
if ( this.isElementType ( ) ) {
} 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> 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()); } return processor.ecmaToXmlString(copy);