XPath bug with !=

  • Jonathon Roberts

    There is a bug that was closed relating to this and it still seems to be broken.  Was this ever fixed?

    Bug: X-Path expression with "!=" does not work as expected - ID: 1609216

  • jimmy zhang

    jimmy zhang - 2010-03-05

    Are you referring to the latest version? Do you have a test case?

  • Michele Blasi

    Michele Blasi - 2010-06-03

    Hi, I try to use a xpath expression with not equal operator in VTD-XML 2.8, but it doesn't work.
    Test Case:
                        SimpleDateFormat sdf = new SimpleDateFormat("yyMMddkkmmssS");
                        VTDGen vg = new VTDGen();
                        AutoPilot ap = new AutoPilot(vn);;
                        XMLModifier xm = new XMLModifier(vn);
                        ap.declareXPathNameSpace("LMSG", "urn:CBI:xsd:CBISDDReqLogMsg.00.00.02");
                        int counter = 0;
                        while ((tkId = ap.evalXPath()) != -1) {
                            logger.info(" Token id: " + tkId);
                            xm.updateToken(tkId, "Id" + sdf.format(Calendar.getInstance().getTime()) + "-" + (++counter));

  • jimmy zhang

    jimmy zhang - 2010-06-04

    Hi, This is a bug that has been identified and fixed… please check out hte new BinaryExpr.java and compile it youself. Ora fix will be released in 2.9… is that ok with you?

  • Michele Blasi

    Michele Blasi - 2010-06-05

    It's ok for me. Thanks and good job.


Log in to post a comment.