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 <[EMAIL PROTECTED]>

===========================
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:[EMAIL PROTECTED]/

_______________________________________________
Phpxmldb-phpxml-arc mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/phpxmldb-phpxml-arc

Reply via email to