> Hello Everyone,
>
[quoted text clipped - 48 lines]
> When I run the XPAth query: //b[.=2] That returns the proper <b> node.
> But if I do //b[.>2] or //b[b >= 1] or //b[. != 1] .... all of those
> en < or unkown in xpath, you should use < and >
For != im not sure, maye not(.=1) works?
> return nothing even though there are valid results. Whenever I compare
> on a string it always returns nothing. Are the XPath classes in the
[quoted text clipped - 4 lines]
>
> Any ideas?
gfrommer@hotmail.com - 29 Jun 2005 22:02 GMT
I tried it with < and > and both dont work. They each throw an
"javax.xml.transform.TransformerException: Expected ], but found: <"
error.
Why are these simple xpaths not working? There isnt much to go wrong in
the code, it has to be Java's XPath engine.
gfrommer@hotmail.com - 29 Jun 2005 22:05 GMT
Also, when I run the XPath with <= it simply returns nothing... when I
use the < or > its throwing an exception. Very confusing.
gfrommer@hotmail.com - 29 Jun 2005 22:18 GMT
Hmph.... html is interpreting the < and > with those symbols you
suggested.... thats what I tried...
gfrommer@hotmail.com - 30 Jun 2005 00:13 GMT
I figured it out... the DOS window was misinterpreting my command line
parameters. I like how I immediatly faulted Java's XPath engine
though.... it's not my problem, the universe is wrong :)
Peace