/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java
QName qname = ( QName) nameValue; } else if ( nameValue instanceof QName) {return ( ( XMLName) nameValue).toQname( ) ;
return ( ( XMLName ) nameValue ) .toQname ( ) ; } else if ( nameValue instanceof QName ) { QName qname = ( QName ) nameValue;
} } 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) { <extra_id_0> return qname.getDelegate(); } else if (nameValue instanceof Boolean || nameValue instanceof Number || nameValue == Undefined.instance || nameValue == null) { throw badXMLName(nameValue);