Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Extracting elemnts using Jtidy



Hi all i would like to know if anyone of you have worked on jtidy!
I have a problem here and i dont know how to solve this using jtidy!

Ok the problem is this! consider the following html

<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<div class="superClass">
<p>this is superClass, you are suppose to extract sub class</p>
<div class="subClass">
<p>extracting the subClass</p>
</div>
<p>this is superClass, you are suppose to extract sub class</p>
</div>
</BODY>
</HTML>

now my problem is that i need to extract the innerhtml from div element in the above html i.e.

Please if anybody have any idea let me know!