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