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

Namespaced attribute not selected with wildcard

    Details

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

      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

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

              Dates

              • Created:
                Updated:
                Resolved: