note 83712 added to domxpath.registernamespace

From: Date: Sun, 08 Jun 2008 21:49:20 +0000
Subject: note 83712 added to domxpath.registernamespace
Groups: php.notes 
Request: Send a blank email to php-notes+get-140250@lists.php.net to get a copy of this message
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... ---- Server IP: 209.41.74.194 Probable Submitter: 70.95.96.201 ---- Manual Page -- http://www.php.net/manual/en/domxpath.registernamespace.php Edit -- https://master.php.net/note/edit/83712 Del: integrated -- https://master.php.net/note/delete/83712/integrated Del: useless -- https://master.php.net/note/delete/83712/useless Del: bad code -- https://master.php.net/note/delete/83712/bad+code Del: spam -- https://master.php.net/note/delete/83712/spam Del: non-english -- https://master.php.net/note/delete/83712/non-english Del: in docs -- https://master.php.net/note/delete/83712/in+docs Del: other reasons-- https://master.php.net/note/delete/83712 Reject -- https://master.php.net/note/reject/83712 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140250) next »