jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • jaxen
  • JAXEN-219

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    JaxenDom4jXPath.java
    31/Jan/12 7:12 PM
    2 kB
    Dmitry Goldenberg

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Elliotte Rusty Harold added a comment - 05/May/12 12:51 PM

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 - 05/May/12 12:51 PM 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
Vote (0)
Watch (0)

Dates

  • Created:
    31/Jan/12 7:12 PM
    Updated:
    05/May/12 12:51 PM
    Resolved:
    05/May/12 12:51 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.