code: public static boolean isNamedElement(final Node aNode) {
  
          final boolean isElementNode = aNode != null && aNode.getNodeType() == Node.ELEMENT_NODE;
  
          return isElementNode
                  && getNamedAttribute(aNode, NAME_ATTRIBUTE) != null
                  && !getNamedAttribute(aNode, NAME_ATTRIBUTE).isEmpty();
      }
docs: Checks if the supplied DOM Node is a DOM Element having a defined "name" attribute.
  
  @param aNode A DOM Node.
  @return {@code true} if the supplied aNode is an Elemnet having a defined "name" attribute.