idw
Brought to you by:
bs_php,
nigelswinson
From: Peter R. <ph...@pe...> - 2001-11-07 13:02:19
|
I installed phpxml for a project several months ago, and have had little time since. I'm now trying to update to the new version, but can't get it to work. I have just tried the useCases as provided out of the box and get the same problems: whatever I enter in the XPath expression box (except //*), I get error msgs similar to the following: ---------------------- Configuration Array ( [XmlFile] => government.xml [XPath] => /government[1] [Value] => [Action] => Search ) Searching Warning: Invalid range end in XPath.class.php on line 1990 Warning: Invalid range end in XPath.class.php on line 2778 XPath error in XPath.class.php:2788 While parsing the XPath expression "/government[1]" an empty and therefore invalid node-test has been found. ------------------- I see Dan has reported the 'invalid range end' in the bugs on sourceforge. I have had this msg in other scripts since installing php 4.0.6, and fixed it in them by removing the _ in the ereg list. I tried doing the same in phpxpath - this gets rid of the warnings, but doesn't fix the problem! What's going on? Btw, when I first used the useCases, I got 'Error, function test not written yet' until it dawned on me I'm supposed to press 'Search' not enter. Would suggest search should be default. |