/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
if ( length() == 0) {
if ( index < length ( ) ) {
XML x = item(0); xmlValue = x == null ? newTextElementXML(null, targetProperty, null) : x.copy(); } ((XML) xmlValue).setChildren(value); } } <extra_id_0> parent = item(index).parent(); } else if (length() == 0) { parent = targetObject != null ? targetObject.getXML() : parent(); } else { parent = parent(); }