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
Comment #1
sbydrupal commentedJust checked, string function is working in 6.x-1.x-dev version.
Comment #2
thedavidmeister commentedalso, 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
Comment #3
Dimm commentedProject: Feeds XPath Parser
Version: 7.x-1.x-dev
XPath HTML parser:
a/@href - error:500.
string(a/@href) - is OK.