[android-developers] Re: HTML parsing with JAVA

2010-03-10 Thread Beena
Thanks Frank, I have tried it but it is not working it gives me error. I have searched for that and i found interesting. See the below link which says it contains error. http://osdir.com/ml/Android-Developers/2010-01/msg00132.html I gone through the procedure to add external jar into

Re: [android-developers] Re: HTML parsing with JAVA

2010-03-07 Thread Frank Weiss
You might try nekohtml, which several developers have reported success using on Android. On Thu, Mar 4, 2010 at 2:13 AM, Beena swdeveloper2...@gmail.com wrote: Thanks Sean Hodges for reply, Please tell me which jar file I have to use to parse the html? I have used log4j-api-1.2.15.jar and

Re: [android-developers] Re: HTML parsing with JAVA

2010-03-04 Thread Sean Hodges
I have have good results with Jericho (http://jericho.htmlparser.net), it works very efficiently in Android, and has a pretty comprehensive API. There are examples on the site, but to give you an idea of the syntax: Source source = new Source(new URL(www.google.co.uk)); ListElement linkElements =

[android-developers] Re: HTML parsing with JAVA

2010-03-04 Thread Beena
Thanks Sean Hodges for reply, Please tell me which jar file I have to use to parse the html? I have used log4j-api-1.2.15.jar and also log4j-1.2.15.jar. But when I am using it import import net.htmlparser.jericho.*; It gives me error as net is not resolved. What is wrong with this? Am I

[android-developers] Re: HTML parsing with JAVA

2010-03-03 Thread Beena
Thanks Jens, I have to parse HTML in my project. I have set the tagsoup-1.2.jar file using eclips. Now when I build it gives warning as warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably

[android-developers] Re: HTML parsing with JAVA

2010-03-03 Thread Beena
second thing how can I use it? It showing me all the packages. Then how can I parse it? Any sample code will help a lot. Thanks. On Mar 4, 12:06 pm, Beena swdeveloper2...@gmail.com wrote: Thanks Jens, I have to parse HTML in my project. I have set the tagsoup-1.2.jar file using eclips.

[android-developers] Re: HTML parsing with JAVA

2010-02-24 Thread Jens
Tagsoup. You can add the lib to your project or (ab)use reflection to obtain it from your platform - Google is using themselves. http://home.ccil.org/~cowan/XML/tagsoup/ On 22 Feb, 06:54, Alisha alisha.a...@gmail.com wrote: Hi All, I have to parse a html file using java. I have gone through a

[android-developers] Re: HTML parsing with JAVA

2010-02-24 Thread Bob Kerns
Thanks for the pointer, Jens -- this looks like a nice option. Slow-and-robust is probably the most useful addition to the repertoire, and having a standard interface is a big plus! On Feb 24, 12:23 am, Jens dunkingbikk...@gmail.com wrote: Tagsoup. You can add the lib to your project or (ab)use

[android-developers] Re: HTML parsing with JAVA

2010-02-22 Thread Bob Kerns
You have NO IDEA what a can of worms this is! The problem is, real-world HTML is simply NOT STANDARD. That is, there's a standard, it's kind of loose, and people violate it all the time. Browsers understand this, and have VERY forgiving parsers. But a good forgiving parser is a lot harder to

[android-developers] Re: HTML parsing with JAVA

2010-02-22 Thread Bob Kerns
I should add that one reason you may not have been able to understand some of the HTML parsers you've seen, is that a lot of them are written by so-called compiler compilers, better described as parser generators, based on a specialized parsing language. The output is not really human-readable, to