0

I have a Html Response for my application that I need to parse ultimately. Is there any way to perform the Html Parsing in android application. I have searched net a lot but couldn't found anything I was looking for.

Can anyone have a clue to do the same?

Thanks, david

David Brown
  • 4,783
  • 17
  • 50
  • 75
  • Why do you want to parse a HTML file? – Chromium Jan 04 '11 at 06:00
  • @Chromium - because the response for the links that I am getting from the server is in the Html form. And I need only some specific data to get displayed in my application. – David Brown Jan 04 '11 at 06:21
  • please refer this link: http://www.anddev.org/html_parsing_in_android_how-t10749.html – UVM Jan 04 '11 at 06:01

2 Answers2

2

david do check HTML class

Html.fromHtml("<a href=http://saurabh-nigam.blogspot.com/>myblogt</a>")

And also this post 'html parsers for android' links some parsers

Community
  • 1
  • 1
100rabh
  • 6,156
  • 5
  • 27
  • 41
2

We are using both jericho and htmlcleaner in our project. We have made some changes (big and small) to htmlcleaner. And we have added better error handling to jericho.

Our Jericho and htmlcleaner versions are available on github.

(In answer to why we forked: we needed some fixes that the original developers were unwilling or unavailable to incorporate into their version. This was not a willing fork. )

Pat
  • 5,761
  • 5
  • 34
  • 50