Getting anchor text from a webpage using xpath within YQL

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-12T20:58:16Z Indexed on 2010/05/13 5:24 UTC
Read the original article Hit count: 313

Filed under:
|
SELECT content FROM html WHERE url="http://en.wikipedia.org/wiki/List_of_United_States_National_Parks_by_state" AND xpath="//a/text()"

does not work, whereas

SELECT * FROM html WHERE url="http://en.wikipedia.org/wiki/List_of_United_States_National_Parks_by_state" AND xpath="//a/text()"

does.

SELECT content FROM html WHERE url="http://en.wikipedia.org/wiki/List_of_United_States_National_Parks_by_state" AND xpath="//a"

also works, it seems YQL has a bug, or am I missing something?

© Stack Overflow or respective owner

Related posts about yql

Related posts about xpath