I needed to get a specific element from an XML document based on its value / element content.
So I need a query to get me the element which has the text H.G.Wells. I could find a whole lot of examples on the net to get me an element based on the value of one of it's attribute.
or based on one of its sub elements
I tried a whole of things but to no avail. Then I turned to pester one of my buddies Ranjeet here, who turned to a saved ref document.
The answer here is
/root/SomeSection/path[.='H.G.Wells']the dot was my missing link to the solution. Oh well, what the hell...
Here's hoping the next guy finds it sooner