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
if you are using html agility pack use getattributeValue:
$doc2.DocumentNode.SelectNodes("//div[@class='className']/div[@class='InternalClass']/a[@class='InternalClass']").GetAttributeValue("href","")