note 88358 rejected from function.simplexml-element-xpath by danbrown

From: Date: Wed, 21 Jan 2009 11:57:00 +0000
Subject: note 88358 rejected from function.simplexml-element-xpath by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149586@lists.php.net to get a copy of this message
Note Submitter: sjoerd at van-staveren dot net ---- 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?

« previous php.notes (#149586) next »