note 88358 added to function.simplexml-element-xpath

From: Date: Wed, 21 Jan 2009 09:23:53 +0000
Subject: note 88358 added to function.simplexml-element-xpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-149577@lists.php.net to get a copy of this message
Does xpath in php support xpath functions? I have tried: $xml=simpleXML_load_file('data.xml'); $query = ' count(/a/b/c)'; $result = $xml->xpath($query); echo $result; The script runs without returning an error but it does not return a result either, not even an empty array. Does anyone have a clue? ---- Server IP: 213.249.64.162 Probable Submitter: 193.176.129.2 ---- Manual Page -- http://www.php.net/manual/en/function.simplexml-element-xpath.php Edit -- https://master.php.net/note/edit/88358 Del: integrated -- https://master.php.net/note/delete/88358/integrated Del: useless -- https://master.php.net/note/delete/88358/useless Del: bad code -- https://master.php.net/note/delete/88358/bad+code Del: spam -- https://master.php.net/note/delete/88358/spam Del: non-english -- https://master.php.net/note/delete/88358/non-english Del: in docs -- https://master.php.net/note/delete/88358/in+docs Del: other reasons-- https://master.php.net/note/delete/88358 Reject -- https://master.php.net/note/reject/88358 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149577) next »