note 83712 deleted from domxpath.registernamespace by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 11:00:57 +0000 |
| Subject: | note 83712 deleted from domxpath.registernamespace by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197016@lists.php.net to get a copy of this message | ||
Note Submitter: adam dot prall at thinkingman dot com
----
Just a quick "gotcha" that may sound stupid:
If you've registered your namespaces, loaded your XHTML, etc., into your XPath's
DOMDocument object and <i>still</i> can't get it to work, check to make sure you
haven't used the DOMDocument's loadHTML() or loadHTMLFile() function. For XHTML
<i>always use the XML versions</i>, otherwise your XPath will never, ever work. Save
yourself a couple hours of frustration...