code: protected String getNonNamespacedNodeName(Node node) {
          String name = node.getLocalName();
          if (name == null) {
              return node.getNodeName();
          }
          return name;
      }
docs: Strip any namespace information off a node name
  @param node
  @return the localName if the node is namespaced, or the name otherwise