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
<a href="http://stackoverflow.com">programming questions site</a>
<a href="http://cnn.com">news</a>
I want an XPath expression such that if given programming questions site
it will give http://stackoverflow.com
and if I give it news
it will give http://cnn.com
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…