jaxen
  1. jaxen
  2. JAXEN-219

Jaxen with Dom4j is not finding any matches for XPath expressions that should match

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: dom4j
    • Labels:
      None
    • Environment:
      Win 7 64bit, 6 GB of RAM
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      Jaxen with Dom4j is not working. It doesn't pull any matches out of xml. See the attached Java class. You can change the xml and the expression and won't get any matches.

        Activity

        Hide
        Elliotte Rusty Harold added a comment -

        Your sample code shows you using a dom4j navigator to query a DOM document model. That won't work. It should probably throw an exception. Either use a dom4j document or a DOM navigator.

        Show
        Elliotte Rusty Harold added a comment - Your sample code shows you using a dom4j navigator to query a DOM document model. That won't work. It should probably throw an exception. Either use a dom4j document or a DOM navigator.

          People

          • Assignee:
            Elliotte Rusty Harold
            Reporter:
            Dmitry Goldenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: