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