[phpXML] Re: [phpXML] Re: [phpXML] [xpath.class.php] Question (stupid one ?)
Brought to you by:
bs_php,
nigelswinson
|
From: <bs...@us...> - 2001-10-08 13:04:27
|
Hi Luc,
my answer will be surprising: "Everything is OK".
The problem is in the code of M.Mehl you use to do the query.
It's missing quotes !:
Sample:
//person/*[contains(., 'Jos')]/.. ( Not //person/*[contains(., Jos)]/.. )
Correct line 134 (+/-)
$government = $xml->evaluate( "//person/*[contains(., $term)]/..");
to
$government = $xml->evaluate( "//person/*[contains(., '$term')]/..");
Otherwise XPath will asume it's a function call instead of a string
and will try to evaluate it.
--
Sam Blum <bs...@us...>
===========================
For the most recent version of phpxml, V1.N.X, and an archive of this list
visit: http://www.sourceforge.net/projects/phpxmldb
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|