/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
if ( node.isTextType( ) ) {
if ( this.node.isParentType ( ) ) {
insertChildAfter(childToReplace, xml); removeChild(index); } return this; } XML prependChild(Object xml) { <extra_id_0> this.node.insertChildrenAt(0, getNodesForInsert(xml)); } return this; } XML appendChild(Object xml) { if (this.node.isParentType()) {