[thelist] XPATH - get only atrribute *values*

Matt Warden mwarden at gmail.com
Fri Aug 5 10:52:11 CDT 2005


On 8/5/05, James Hardy <evolt at weeb.biz> wrote:
> the XPath expression
> //LINK[TEXT='TV']/@href
> will return three element nodes with evaluate to the following strings
> 
> href="http://www.bbc.co.uk/"
> href="http://www.cnn.com/"
> href="http://www.five.tv/"
> 
> these name / value pairs are all well and good, however what I would
> like is to just have the following as text-nodes
> 
> http://www.bbc.co.uk/
> http://www.cnn.com/
> http://www.five.tv/

http://www.xml.com/pub/a/2002/04/03/attributes.html

-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list