This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Html document to java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Html document to java" Watch "Html document to java" New topic
Author

Html document to java

Gabriel Beres
Ranch Hand

Joined: Sep 09, 2006
Posts: 61
Hi!

I'm searching for a java library, that allows me, to parse a html formatted string, separate the content from html tags, and bind it to java objects, so i can save it to database with hibernate, and load the whole page later.

Thanks for help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
There are several libraries that will transform HTML into a DOM tree as best as they can (NekoXNI, TagSoup, JTidy). From that DOM tree you could then construct a hibernatable presentation that suits your needs.


Ping & DNS - my free Android networking tools app
Gabriel Beres
Ranch Hand

Joined: Sep 09, 2006
Posts: 61
Thanks. I found jerichohtml, and it looks like it suids my needs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Html document to java