note 96153 added to simplexmlelement.xpath

From: Date: Thu, 11 Feb 2010 12:08:33 +0000
Subject: note 96153 added to simplexmlelement.xpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-165865@lists.php.net to get a copy of this message
On a xml that have namespace you need to do this before your xpath request (or empty array will be return) : $string = str_replace('xmlns=', 'ns=', $string); //$string is a string that contains xml... ---- Server IP: 217.71.118.186 Probable Submitter: 213.189.188.4 ---- Manual Page -- http://www.php.net/manual/en/simplexmlelement.xpath.php Edit -- https://master.php.net/note/edit/96153 Del: integrated -- https://master.php.net/note/delete/96153/integrated Del: useless -- https://master.php.net/note/delete/96153/useless Del: bad code -- https://master.php.net/note/delete/96153/bad+code Del: spam -- https://master.php.net/note/delete/96153/spam Del: non-english -- https://master.php.net/note/delete/96153/non-english Del: in docs -- https://master.php.net/note/delete/96153/in+docs Del: other reasons-- https://master.php.net/note/delete/96153 Reject -- https://master.php.net/note/reject/96153 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165865) next »