/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
if ( otherList.length( ) <= 1) {
if ( otherList.length ( ) == 1 ) {
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> result = equivalentXml(otherList.getXML()); } } else if (hasSimpleContent()) { String otherStr = ScriptRuntime.toString(target); result = toString().equals(otherStr); }