| | |
HTML parsing
![]() |
•
•
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 |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class client code color compare component coordinates database detection doctype eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list loop map method methods mobile netbeans newbie nextline object pong print problem producer program programming project projectideas read recursion recursive replaysolutions rim scanner sell server set size sms sort sql string swing terminal threads tree web websites windows






