在Android的解析HTMLAndroid、HTML

2023-09-11 10:37:08 作者:依赖成折磨

我想从网页解析HTML的机器人,而且由于网页它不能很好地形成,我得到的SAXException

I am trying to parse HTML in android from a webpage, and since the webpage it not well formed, I get SAXException.

有没有一种方法来解析HTML中的Andr​​oid?

Is there a way to parse HTML in Android?

推荐答案

有很多 Java的HTML解析器。无论是在Android上的任何工作,我不能说。我见过人们尝试使用TagSoup的基础上,其他职位在这里左右。

There are many Java HTML parsers. Whether any work on Android, I can't say. I've seen people experiment with TagSoup, based on other posts here in SO.