/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
} else if ( nameValue == null) {
} else if ( nameValue instanceof QName ) {
} TODO: Too general; this should be split into overloaded methods. Is that possible? XmlNode.QName toNodeQName(Context cx, Object nameValue, boolean attribute) { if (nameValue instanceof XMLName) { return ((XMLName) nameValue).toQname(); <extra_id_0> QName qname = (QName) nameValue; return qname.getDelegate(); } else if (nameValue instanceof Boolean || nameValue instanceof Number || nameValue == Undefined.instance || nameValue == null) {