public static String getAttribute(Node node, String name) {
    NamedNodeMap attributes = node.getAttributes();
    if (attributes == null) {
      return null;
    }

    Node attributeNode = node.getAttributes().getNamedItem(name);
    if (attributeNode == null) {
      return null;
    }
    return attributeNode.getTextContent();
  }
*
Creates a node from the String xml definition

@return Node representing the xml definition
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/XmlUtils.java