* @throws Exception
* something went wrong.
*/
public static String diff(String first, String second) throws Exception {
StringWriter finalResult = new StringWriter();
SAXTransformerFactory tf = new TransformerFactoryImpl();
TransformerHandler result = tf.newTransformerHandler();
result.setResult(new StreamResult(finalResult));
result.getTransformer().setOutputProperty(
OutputKeys.OMIT_XML_DECLARATION, "yes");
ContentHandler postProcess = result;