HtmlCleaner is open-source HTML parser written in Java. For the given HTML document, HtmlCleaner reorders individual elements and produces well-formed XML.