• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to parse html content in android

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends

can anybody tell how to parse html content for attribute in android give example?





thanks
 
Lars Vogel
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You find an example how to read an URL here: Android Networking
 
Perry Hoekstra
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How confident that the HTML is well-formed, i.e. XHTML? If it is XHTML, you can parse it like you would a XML document.

You can find an example here of parsing XML on Android: http://www.ibm.com/developerworks/opensource/library/x-android

Perry Hoekstra
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!