This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Remembering JTable column widths
SWT - anybody had luck using TreeTableViewer's reveal() method?
Making all of a certain id have .click()
register cattle drive
HTML div tags - positioning