Hopefully someone can answer this.
I'm using the class, class XML, written by Michael P. Mehl, back in 2001.
xml
xpath query
When I execute the query, nothing is actually returned. I've done a ton of testing setting the "name" element to other values (such as "grapes","grapes water","grapes like water") and updating the query to correspond and they all worked fine.
I did some tracing and found that the class breaks apart the string (well I think it does) and then when the parser encounters the word "and", it actually see's it as the and operator, so a boolean operation is performed.
I'm trying to figure out if this is a bug in the class or within php itself. If it is the class, are there any good php classes out there??
thanks in advance.
I'm using the class, class XML, written by Michael P. Mehl, back in 2001.
xml
Code:
...
<item>
<name>Grapes and Water</name>
...
</item>
...
xpath query
Code:
//item/[name/.='Grapes and Water']
When I execute the query, nothing is actually returned. I've done a ton of testing setting the "name" element to other values (such as "grapes","grapes water","grapes like water") and updating the query to correspond and they all worked fine.
I did some tracing and found that the class breaks apart the string (well I think it does) and then when the parser encounters the word "and", it actually see's it as the and operator, so a boolean operation is performed.
I'm trying to figure out if this is a bug in the class or within php itself. If it is the class, are there any good php classes out there??
thanks in advance.