unexpected-result

xpath not working as expected

From comments I found the issue :(, Thank you so much for your help, its appreciated, the reason's was because error reporting was switched off and then there was a missing function, causing the script to stop executing in its place For some reason this Xpath query is not working as expected foreach($this->Xpath->query...