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