YQL How to use wildcard in XPath

Posted by uku on Stack Overflow See other posts from Stack Overflow or by uku
Published on 2010-03-31T22:23:18Z Indexed on 2010/04/01 5:23 UTC
Read the original article Hit count: 347

Filed under:
|

Hello,

I have a malformed page to scrape, and have had a hard time getting the correct XPath for YQL. I can scrape individual fields that I need using, for example:

//*[@id="cell_12345"]

But what I really need to do is return all elements who's ID begins with cell_. Something like:

//*[@id="cell_"*]

How do I do this?

Also, if anybody can point me to a good XPath reference it would be very helpful.

Thanks!

© Stack Overflow or respective owner

Related posts about yql

Related posts about xpath