Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-109

Namespaced attribute not selected with wildcard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • ALL

    Description

      With expression:

      xml/@*

      On xml:

      <xml xmlns:x='foo' x:pop='a'/>

      selectSingleNode returns null, @x:* works fine.

      Possible Fix:

      In DOMAttributeIterator, line 84

      if (equalStrings(testPrefix, nodePrefix))

      { return true; }

      should probably be changed to

      if (testPrefix==null || equalStrings(testPrefix, nodePrefix)) { return true; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            vivodamichele@hotmail.com Michele Vivoda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: