File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Extracting HTML Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Extracting HTML Table" Watch "Extracting HTML Table" New topic

Extracting HTML Table

Hilton Meyer

Joined: Nov 13, 2003
Posts: 17
I'm trying to extract a table off a web page so that I can place the data into a database. I've been trying hopelessly to use the HTMLEditorKit by iterating and even trying to get each element but I keep running into a brick wall. When using an iterator it returns null for HTML.Tag.TD even though there is a table present. I've read that there are some problems with tables in the editor so you may be able to point me in the right direction. I'm really at my the end of my wits so any help would be appreciated.

Keep it Tidy
I agree. Here's the link:
subject: Extracting HTML Table
It's not a secret anymore!