private static String getAttributeValue(final Node node, final String attrName) {
    NamedNodeMap attrMap = node.getAttributes();
    Node attrNode;
    if (attrMap != null && (attrNode = attrMap.getNamedItem(attrName)) != null) {
      return ((Attr) attrNode).getValue();
    }
    return EMPTY_VALUE;
  }
Get the attribute value for a given attribute name of a node.
geode-dunit/src/main/java/org/apache/geode/security/templates/XmlAuthorization.java