I have:

<center><h3>Title</h3></center> ... stuff here that I want selected in <p>...</p>elements ... <a href="index.htm">Content</a>

The first and the last I can find them with xpath: //center/h3 and respectively //a[@href="index.html"] .

Can I take the area between this two xpath selections and if yes how, or should I use regular expressions on the source code of that page?