| | |
HTML parsing
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2005
Posts: 30
Reputation:
Solved Threads: 0
Hello,
I'm new to HTML parsing and I need some help.I want to parse a HTML file , and I have the Java classes in place but I need an advise on how to code a piece of logic in my callback function.
I need to parse through the file until I encounter the second table in the file and then display the contents of that particular table.
I'll be grateful if I can get help on this.
Thanks in advance..
Also I am getting a java.net.UnknownHostException: error when I enter any URL in my code. How can I solve that ?
I'm new to HTML parsing and I need some help.I want to parse a HTML file , and I have the Java classes in place but I need an advise on how to code a piece of logic in my callback function.
I need to parse through the file until I encounter the second table in the file and then display the contents of that particular table.
I'll be grateful if I can get help on this.
Thanks in advance..
Also I am getting a java.net.UnknownHostException: error when I enter any URL in my code. How can I solve that ?
•
•
•
•
Originally Posted by crestaldin
Hello,
I'm new to HTML parsing and I need some help.I want to parse a HTML file , and I have the Java classes in place but I need an advise on how to code a piece of logic in my callback function.
I need to parse through the file until I encounter the second table in the file and then display the contents of that particular table.
I'll be grateful if I can get help on this.
Thanks in advance..
<table border="1">is found. Check out the string api for the 'find' function.Once it finds the second occurence push all the data into storage untill it gets to the
</table>. For example, I'd push each line into an arraylist.•
•
•
•
Also I am getting a java.net.UnknownHostException: error when I enter any URL in my code. How can I solve that ?
Last edited by iamthwee; Aug 1st, 2006 at 5:54 am.
*Voted best profile in the world*
![]() |
Similar Threads
- Parsing html form. (PHP)
- can I get a title from an html header tag? (PHP)
- Using CSS in email? Or alternative? (HTML and CSS)
- HTML parsing by perl (Perl)
- parsing html (Java)
Other Threads in the Java Forum
- Previous Thread: hai friends plz suggest me
- Next Thread: help me please... asap
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint 2dgraphics android api apple applet application applications arguments array arrays automation bank bidirectional binary bluetooth chat class classes client code collision component database db development draw eclipse eclipsedevelopment error event exception fractal game givemetehcodez graphics gui helpwithhomework homework html ide image input integer integration j2me jarfile java javadesktopapplications javafx javaprojects jmf jni jpanel julia learningresources linux list loop map method methods mobile netbeans newbie number oracle print problem producer program programming project projectideas recursion researchinmotion scanner screen server service set size sms socket sort sorting sql sqlserver state string swing swt tcp test text-file threads time tree web windows






