I would like to fetch part of web page with yql. I have tried several queries. Most of the queries can return the correct result except one query.
Here is the query:
select * from html where url="http://www.cngold.org/img_date/livesilvercn_rmb.html" and xpath='//div[6]/div[2]/div/div[2]/table/tbody/tr[4]/td[6]'
I hope to get the price but actually get the empty result.
If I retrieve the whole page with yql and check the xpath of that element, this time the xpath is
//div[3]/div/div[2]/a/div/div[2]/table/tbody/tr[4]/td[6]
Why there are so many differences?
How should I handle the situation?
Thanks in advance.