/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
listToAdd.addToList( ) ;
listToAdd.addToList ( obj1 ) ;
if (list1.length() == 1) { listToAdd.addToList(list1.item(0)); } else { listToAdd = newXMLListFrom(obj1); } } else { <extra_id_0> } if (obj2 instanceof XMLList) { XMLList list2 = (XMLList) obj2; for (int i = 0; i < list2.length(); i++) { listToAdd.addToList(list2.item(i)); }