public static QName fromNode ( final Node nd ) { String ns = nd . getNamespaceURI ( ) ; if ( ns == null ) { /* It appears a node can have a NULL namespace but a QName has a zero length */ ns = "" ; } return new QName ( ns , nd . getLocalName ( ) ) ; }
Return a QName for the node