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