public static String pretty ( final Source source ) { StreamResult result = new StreamResult ( new StringWriter ( ) ) ; pretty ( source , result ) ; return result . getWriter ( ) . toString ( ) ; }
Serialise the provided source to a pretty - printed String with the default indent settings