Nigel,

I'm not sure the problem lies in my XML files, I think it lies in the way I 
didn't modify my php file.

At : http://www.interpasnet.com/1.N.5/examples/government/index.php
You'll find Michael P. Mehl. government example with only two changes :
1) call to (include) php file xplath.class.php instead of xml.php
2) call to class XPath instead of XML (like in $xml = new XPath($file);)

try it with for example the key word "Gerhard"

The result is the same :
phpXML error: While parsing an XPath expression there was an error in the 
predicate "Gerhard", because it was the null string. If you wish to seach 
for the empty string, you must use ''.


Luc

At 23:42 25/09/01 +0000, you wrote:
> > Error is :
> > phpXML error: While parsing an XPath expression there was an error in the
> > predicate "1", because it was the null string. If you wish to seach for
>the
> > empty string, you must use ''.
>
>Try replacing line 1997 with:
>
>     if (ereg('^[[:space:]]*$', $predicate))
>
>
>it was:
>
>     if (ereg('^\w*$', $predicate))
>
>
>But I'm not sure if \w is trying to match a word, not whitespace.  I can't
>find a useful posix reference, but I know that it should be \s in perl
>regexes...
>
>If you could hone down which evaluate() call makes this error, and perhaps
>send a small subset of xml and evaluate call that makes the error, then we
>can add a test to catch this error.  As such I haven't been able to
>reproduce the error, and I'm forbidden to access
>http://www.interpasnet.com/xml_files/cachecache/cachecache.xml directly.

--
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