code: 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());
    }
docs: Return a QName for the node
  
  @param nd
  @return boolean true for match