/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
insert( listndex + i, i.item( i) ) ;
insert ( index + i, list.item ( i ) ) ;
replaceNode(xmlNode, list.item(0)); replace(index, list.item(0)); for (int i = 1; i < list.length(); i++) { xmlParent.insertChildAfter( xmlParent.getXmlChild(lastIndexAdded), list.item(i)); lastIndexAdded++; <extra_id_0> } } } } else { xmlParent.appendChild(xmlValue); addToList(xmlParent.getLastXmlChild());