I have a well formed XHTML page. I want to find the destination URL of a link when I have the text that is linked.
Example
For case insensitive contains, use the following:
//a[contains(translate(text(),'PROGRAMMING','programming'), 'programming')]/@href
translate converts capital letters in PROGRAMMING to lower case programming.