code: protected String getNodeName(Node node) {
          String result = node.getLocalName();
          return result == null ? node.getNodeName() : result;
      }
docs: Returns the node name. First tries local name. If this is null, returns instead the full node
  name.
  
  @param node DOM node to examine.
  @return Name of the node.