Re: [android-developers] parsing html code into andriod page

2012-06-16 Thread Fred Niggle
Since you are new, it is highly recommended that you work through java programming tutorials - a simple google search will lead you to them. Regards, Fred On 16 June 2012 12:32, prudhvi p n v wrote: > hi guys , > > i am new to android .can anyone give the example for parsing an html page > to

[android-developers] parsing html code into andriod page

2012-06-16 Thread prudhvi p n v
hi guys , i am new to android .can anyone give the example for parsing an html page to android page thanks, Naga -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com T

Re: [android-developers] Parsing HTML

2010-01-28 Thread Jason Proctor
On Thu, Jan 28, 2010 at 6:30 PM, Jason Proctor wrote: XML parsers require closed tags. No, not all of them do. This is exactly the point you can't seem to grasp. There are many XML parsers that close tags for you. Whether you still consider them to actually be XML parsers doesn't matter, t

Re: [android-developers] Parsing HTML

2010-01-28 Thread Greg Donald
On Thu, Jan 28, 2010 at 6:30 PM, Jason Proctor wrote: > XML parsers require closed tags. No, not all of them do. This is exactly the point you can't seem to grasp. There are many XML parsers that close tags for you. Whether you still consider them to actually be XML parsers doesn't matter, the

Re: [android-developers] Parsing HTML

2010-01-28 Thread Jason Proctor
Browsers contain XML parsers (whatever you choose to call them, they still parse XML). Those parsers look for and close unclosed tags before rendering. My point stands. There is also HTML Tidy which parses XML for errors. It can and does close unclosed tags if you ask it to. So that's another

Re: [android-developers] Parsing HTML

2010-01-28 Thread Greg Donald
On Thu, Jan 28, 2010 at 4:53 PM, Jason Proctor wrote: >> On Thu, Jan 28, 2010 at 4:34 PM, Jason Proctor >> wrote: >>> >>>  there ain't no XML parser in the >>>  world that will let an unclosed tag pass. >> >> You mean aside from every web browser ever built? > > ah good -- nice knee-jerk, miss-th

Re: [android-developers] Parsing HTML

2010-01-28 Thread Frank Weiss
I've recommended nekohtml and several people have reported using it successfully on Android. On Jan 28, 2010 3:04 PM, "Marc Petit-Huguenin" wrote: On 01/28/2010 02:31 PM, Allison Inouye wrote: > I am trying to parse an HTML document that is missin... I was able to parse badly written HTML (is th

Re: [android-developers] Parsing HTML

2010-01-28 Thread Marc Petit-Huguenin
On 01/28/2010 02:31 PM, Allison Inouye wrote: > I am trying to parse an HTML document that is missing an end tag on > one of the elements (input tag). Anyone know how to get the parser to > ignore that it doesn't have an end tag and just read an attribute > value? > > DocumentBuilderFactory dbf =

Re: [android-developers] Parsing HTML

2010-01-28 Thread Jason Proctor
On Thu, Jan 28, 2010 at 4:34 PM, Jason Proctor wrote: there ain't no XML parser in the world that will let an unclosed tag pass. You mean aside from every web browser ever built? ah good -- nice knee-jerk, miss-the-point, off-topic post, as usual. see, now i'm feeding the troll. if a docu

Re: [android-developers] Parsing HTML

2010-01-28 Thread Greg Donald
On Thu, Jan 28, 2010 at 4:34 PM, Jason Proctor wrote: > there ain't no XML parser in the > world that will let an unclosed tag pass. You mean aside from every web browser ever built? -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the G

Re: [android-developers] Parsing HTML

2010-01-28 Thread Jason Proctor
DocumentBuilder uses an XML parser, and there ain't no XML parser in the world that will let an unclosed tag pass. if you really need to parse potentially badly formed HTML, take a look at some of the free/shareware HTML parsers around. Google etc. hth I am trying to parse an HTML document

[android-developers] Parsing HTML

2010-01-28 Thread Allison Inouye
I am trying to parse an HTML document that is missing an end tag on one of the elements (input tag). Anyone know how to get the parser to ignore that it doesn't have an end tag and just read an attribute value? DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder buil