0

Multiple Xpath in Single Query

Hi

How do I fetch data from multiple Xpaths in a Single Query?

Thanks

/A

by
4 Replies
  • QUOTE (Adnan @ Jul 20 2009, 12:42 AM) <{POST_SNAPBACK}>
    Hi

    How do I fetch data from multiple Xpaths in a Single Query?

    Thanks

    /A


    Right now it isn't batchable but you can do this:

    select * from html where url='...' and xpath in ('//div', '//a')

    Sam
    0
  • QUOTE (Sam @ Jul 20 2009, 09:23 AM) <{POST_SNAPBACK}>
    Right now it isn't batchable but you can do this:

    select * from html where url='...' and xpath in ('//div', '//a')

    Sam



    Thanks a lot!!!
    0
  • is it possible to set LIMIT for individual xpath?
    0
  • Use pipe (|)for mutiple xpath in single qury

    Example: select content from html where url="http://www.investing.com/indices/india-50-futures" and xpath='//[@id="quotes_summary_current_data"]/div/div[2]/span[4]|//[@id="quotes_summary_current_data"]/div/div[2]/span[2]|//*[@id="last_last"]'

    0

Recent Posts

in YQL