/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
result = equivalentXml(otherList.getXML());
if ( otherList.length ( ) == 1 ) { result = equivalentXml ( otherList.getXML ( ) ) ; }
if (target instanceof XML) { return this.node .toXmlString(getProcessor()) .equals(((XML) target).node.toXmlString(getProcessor())); } else if (target instanceof XMLList) { XMLList otherList = (XMLList) target; <extra_id_0> } else if (hasSimpleContent()) { String otherStr = ScriptRuntime.toString(target); result = toString().equals(otherStr); } return result; }