开发者

Can WebView be used for HTML parsing?

I came across the WebView class in android.webkit and was impressed by how it "does everything for you" (as a programmer), as far as rendering visual HTTP content on the scre开发者_JAVA技巧en.

My question: Is it possible to use the WebView class as a shortcut for parsing rendered HTML for non-visual purposes?

(that is, retrieve certain elements from a web page for text processing, etc.)

If so, how would one go about this?


You don't need to, as far as I know, Android is using TagSoup to parse HTML, and you can use it too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜