I have following html structure
<span class="x">a</span>
<br>
• first
<br>
• Second
<br>
• second
<br>
• third
<br>
<br>
<span class="x">b</span>
I need to get all the text value(comma separated) that occur between span nodes i.e first,second,second,third
How can this be done using xpath,dom