ContentHandler postProcess = result;
Locale locale = Locale.getDefault();
String prefix = "diff";
NekoHtmlParser cleaner = new NekoHtmlParser();
InputSource oldSource = new InputSource(new StringReader(first));
InputSource newSource = new InputSource(new StringReader(second));
DomTreeBuilder oldHandler = new DomTreeBuilder();
cleaner.parse(oldSource, oldHandler);
TextNodeComparator leftComparator = new TextNodeComparator(oldHandler,
locale);
DomTreeBuilder newHandler = new DomTreeBuilder();
cleaner.parse(newSource, newHandler);
TextNodeComparator rightComparator = new TextNodeComparator(newHandler,
locale);
HtmlSaxDiffOutput output = new HtmlSaxDiffOutput(postProcess, prefix);