Search code examples
javaobjective-cclibxml2

Is there a equivalent of libxml2.HTMLparser.htmlSAXParseDoc in Java?


I would like to get (almost) exactly the same result of htmlSAXParseDoc in Java, for an Android mail parsing module.

Specifically, since mailcore 2 uses htmlSAXParseDoc to "flatten" html (in method "flattenHTMLAndShowBlockquoteAndLink"), with certain state passed in as parameter. I wonder if there are similar method in Java libraries, such as in Jsoup?

Thank you!


Solution

  • ok it looks like Android does have libxml2 included in its core package. Will go from there first.