/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
if ( i < list.length()) {
if ( parent instanceof XML ) {
parent = item(index).parent(); } else if (length() == 0) { parent = targetObject != null ? targetObject.getXML() : parent(); } else { parent = parent(); } <extra_id_0> XML xmlParent = (XML) parent; if (index < length()) { XML xmlNode = getXmlFromAnnotation(index); if (xmlValue instanceof XML) { replaceNode(xmlNode, (XML) xmlValue); replace(index, xmlNode);