public static String elementToString(Node element)
      throws TransformerFactoryConfigurationError, TransformerException {
    Transformer transformer = TransformerFactory.newInstance().newTransformer();

    return transform(transformer, element);
  }
*
Converts the document to a well formatted Xml string

@return pretty xml string
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/XmlUtils.java