/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
org.mozilla.javascript.xmlimpl.XMLList list2 =((org.mozilla.javascript.xmlimpl.XMLList)(obj2)); for(int i = 0; i <(list2.length()); i++) {  listToAdd.addToList(list2.item(i));};
if ( obj2 instanceof XMLList ) { XMLList list2 = ( XMLList ) obj2; for ( int i = 0; i < list2.length ( ) ; i++ ) { listToAdd.addToList ( list2.item ( i ) ) ; }
} else { listToAdd = newXMLListFrom(obj1); } } else { listToAdd.addToList(obj1); } <extra_id_0> } else if (obj2 instanceof XML) { listToAdd.addToList(obj2); } return listToAdd; } private Ref xmlPrimaryReference(Context cx, XMLName xmlName, Scriptable scope) {