Xpath query

tag/@attribute

returns text as, e.g.,

attribute = "xyz"

Based on quick research, folks online are using the function:

string(tag/@attribute)

to capture just the text

"xyz"

I have tried and within Xpath parser, this function does not seem to work. Is there any way to solve this issue or an alternative way to capture just the attribute value ?

Thx

Comments

sbydrupal’s picture

Status: Active » Closed (fixed)

Just checked, string function is working in 6.x-1.x-dev version.

thedavidmeister’s picture

also, this works fine without the string() function but you have to turn off debug mode. See the first comment of http://drupal.org/node/1045026

Dimm’s picture

Project: Feeds XPath Parser
Version: 7.x-1.x-dev
XPath HTML parser:
a/@href - error:500.
string(a/@href) - is OK.