max_maggot Posted July 23, 2015 Share Posted July 23, 2015 Hi, I have two xquery statements that I can't seem to get working. I am trying to read the weight value from this site: http://www.vopmart.com/cs2013135.html I have the xquery statement $items['weight'] = $xpath->query("//div/table/tr/td[@class='et7']")->item(0)->textContent; I am also having a problem trying to retrieve the meta_keyword using this statement $items['meta_keyword'] = $xpath->query("//meta[@name='keywords']/@content")->item(0)->textContent; If anybody can spot where I am going wrong I would really appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/297436-xquery-problem-reading-data/ Share on other sites More sharing options...
requinix Posted July 25, 2015 Share Posted July 25, 2015 If you've figured it out yourself, how about posting what you did so everybody else can know about it too? Quote Link to comment https://forums.phpfreaks.com/topic/297436-xquery-problem-reading-data/#findComment-1517323 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.