/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
if ( name2.isAttributeName( ) ) {
if ( xmlName.isAttributeName ( ) ) {
if (targetObject != null && targetProperty != null && targetProperty.getLocalName() != null && targetProperty.getLocalName().length() > 0) { XML xmlValue = newTextElementXML(null, targetProperty, null); addToList(xmlValue); <extra_id_0> setAttribute(xmlName, value); } else { XML xml = item(0); xml.putXMLProperty(xmlName, value); replace(0, item(0)); }