/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java
target.setAttribute( xmlObject) ;
target.appendChild ( xmlValue ) ;
} } else { xmlValue = target.makeXmlFromString(xmlName, ScriptRuntime.toString(value)); } XMLList matches = target.getPropertyList(xmlName); if (matches.length() == 0) { <extra_id_0> } else { for (int i = 1; i < matches.length(); i++) { target.removeChild(matches.item(i).childIndex()); } XML firstMatch = matches.item(0); target.replace(firstMatch.childIndex(), xmlValue);