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