[phpXML] Congratulations Sam and Nigel !
Brought to you by:
bs_php,
nigelswinson
From: <lu...@sa...> - 2001-10-08 13:02:02
|
Sam, You're right, This bug correction works perfectly well with 1N7pre Luc At 13:17 30/09/01 +0000, bs...@us... wrote: >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...> -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |