I have the html:
<p>
<a href="#">click here</a>
Welcome
</p>
And I just want to retrieve the "Welcome" part using Xpath combined with the Jaxen lib the Xpath I am using is;
//p/text()
Now when I remove the /text() it retrieves;
click here
Welcome
With the /text() added it retrieve null Is there any other way to retrieve everything inside the p tag but excluding any other tags?