/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
} else if ((nameValue instanceof Boolean || nameValue instanceof Number)) {
} else if ( nameValue instanceof Boolean || nameValue instanceof Number || nameValue == Undefined.instance || nameValue == null ) {
result = (XMLName) nameValue; } else if (nameValue instanceof QName) { QName qname = (QName) nameValue; result = XMLName.formProperty(qname.uri(), qname.localName()); } else if (nameValue instanceof String) { result = toXMLNameFromString(cx, (String) nameValue); <extra_id_0> throw badXMLName(nameValue); } else { String name = ScriptRuntime.toString(nameValue); result = toXMLNameFromString(cx, name); } return result;