Commons JXPath
  1. Commons JXPath
  2. JXPATH-17

JXPathContext.iteratePointers("//*") results are incorrect

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Other

      Description

      Sometimes strange strings, such as "bytes[1]" and "valid", etc. appear in
      resulting Pointer.asPath() output instead of the actual data.
      Please run the main of the attached class to see what I mean.
      Thanks.

        Activity

        Hide
        Boris Ekelchik added a comment -

        Created an attachment (id=16833)
        Test case

        Show
        Boris Ekelchik added a comment - Created an attachment (id=16833) Test case
        Hide
        Boris Ekelchik added a comment -

        Btw, "//text()" doesn't work either. JXPathContext.iterate() or
        iteratePointers() return no values.

        Show
        Boris Ekelchik added a comment - Btw, "//text()" doesn't work either. JXPathContext.iterate() or iteratePointers() return no values.
        Hide
        Dmitri Plotnikov added a comment -

        The issue with extraneous properties showing up is now fixed.
        As far as text() is concerned, JXPath only supports that node type for DOM,
        JDOM and other XML-based data models.

        Show
        Dmitri Plotnikov added a comment - The issue with extraneous properties showing up is now fixed. As far as text() is concerned, JXPath only supports that node type for DOM, JDOM and other XML-based data models.
        Show
        Niall Pemberton added a comment - Fixed: http://svn.apache.org/viewvc?view=rev&revision=329518

          People

          • Assignee:
            Unassigned
            Reporter:
            Boris Ekelchik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development