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