private static String getNodeValue(final Node node) {
    NodeList childNodes = node.getChildNodes();
    for (int index = 0; index < childNodes.getLength(); index++) {
      Node childNode = childNodes.item(index);
      if (childNode.getNodeType() == Node.TEXT_NODE) {
        return childNode.getNodeValue();
      }
    }
    return EMPTY_VALUE;
  }
Get the string contained in the first text child of the node.
geode-dunit/src/main/java/org/apache/geode/security/templates/XmlAuthorization.java