Some help in XPath expression 2003-04-07 - By Jesus M. Salvo Jr.
I'm still quite new to XPath expressions. What I need is the following:
Given a META tag, take the value of the META tag's content atttribute if and only if name attribute has the value of "Subject", like this: <meta name="Subject" content="John" />
What I have so far is:
//meta/[@(protected)='Subject']
... but that will return me the META node itself if it has a "name" attribute with a value of "Subject".
Can you do something like this?
( //meta/[@(protected)='Subject'] )/@(protected)
Regards,
John
|
|