<div id="content">
<div class="sample1">sample text1</div>
<div class="sample2">
<span style="float:right">some text2</span>
<b>some text2</b>
</div>
<div class="sample3"> sample text <a href="#">This page</a> 3</div>
<p>paragraph 1</p>
<p>paragraph 2</p>
<div class="sample4">sample text4</div>
</div>
I want to extract data that is between these classes "sample2" and "sample4".
The out put will show lik this
sample text 3
paragraph 1
paragraph 2
如何?