Android HTML parser

Android API has a SAX XML parser. But, what do you do when you want to parse HTML?

The SAX XML parser will work great till it encounters an XML error, a mismatched tag as an obvious example. The parser will throw an exception. You can implement the warning and error functions, but it will not help, the exception will still occur, halting the parsing process.

Therefore, the only solution is to import an external HTML parser to Android.

I have searched, read, compared and decided to use NekoHtml . Not sure how the programming team selected the name, but looks like a strong implementation.

I will document all the steps I take to include this library, until the hopefully succesful outcome.

Step 1: Download NekoHtml from sourceforge

Tags: , ,

Leave a Reply