xpath not finding headings
-
I’m not sure what is happening in my environment. This plugin used to work great on this same code. There was an error with saveHTML, which said something about wanting 0 arguments, not 1. I discovered this was related to the version of php I have. I’ve upgraded to PHP 5.5.25, and the error is gone. However, it is still not working.
As best I can see, the first xpath is not finding anything:
$tags = $xpath->query(‘/html/body/*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6]’);
Any ideas what would be calling that?
Here’s an example of the page I am parsing: https://jmsc.hku.hk/businesscasestudies/2011/04/27/case-study-1/
- The topic ‘xpath not finding headings’ is closed to new replies.