| | |
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
actionlistener android api apple applet application apps arguments array arrays automation balls binary bluetooth card chat class classes client code component consumer database draw eclipse ee error event exception file fractal free game gameprogramming gis givemetehcodez graphics gui helpwithhomework html ide image input integer j2me j2seprojects java javaprojects jmf jni jpanel julia jvm linux list loop machine map method methods migrate mobile myaggfun netbeans newbie nextline nls notdisplaying number oracle output print problem program programming project recursion recursive scanner screen security server set size sms socket sort spamblocker sql sqlite string sun swing terminal test threads time tree trolltech windows






