Hi,
In the versions 2.12 & 2.13 the != operator is not working correctly.
E.g. the following expression works fine:
/domain/system-properties/property[not(@name='key')]/@value
but this expression is not returning a the same result:
/domain/system-properties/property[@name!='key']/@value
The workaround is to use the not() function as shown above or to use the version 2.11.
In the attached test case there are some more examples.
Best regards & thanks for this awesome software,
Roland
Ups, this is the correct tests.
yes, thanks this problem is positively identified... my bad... I slapped myself on the face for this already...
please don't slap yourself, better invest the time fix this :-)
I have checked in 2 files that you need to check out for a rebuild.. the first one is under
com.ximpleware package... it is called BinaryExpr.java
http://vtd-xml.cvs.sourceforge.net/viewvc/vtd-xml/ximple-dev/com/ximpleware/BinaryExpr.java?revision=1.37
The other one under com.ximpleware.xpath
http://vtd-xml.cvs.sourceforge.net/viewvc/vtd-xml/ximple-dev/com/ximpleware/xpath/parser.java?revision=1.33
Can you please let me know ... I have done preliminary checking with my own test cases... will test more... but I think the fix is solid
all the bugs plus a few more are now being released in to 2.13_1....
I mark this ticket closed for now...