/** * Create a String result from a DOM Node * * @param node * the DOM Node. Must not be null * @return a String representation of the DOM Document * @throws TransformerException */ public static String createStringFromDOMNode(final Node node) throws TransformerException { return createStringFromDOMNode(node, true); }
/** * Create a String result from a DOM document * * @param document * the DOM Document. Must not be null * @return a String representation of the DOM Document * @throws TransformerException */ public static String createStringFromDOMDocument(final Node document) throws TransformerException { return createStringFromDOMNode(document, false); }