aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Extracting HTML Table" Watch "Extracting HTML Table" New topic
Author

Extracting HTML Table

Hilton Meyer
Greenhorn

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: http://aspose.com/file-tools
 
subject: Extracting HTML Table