Namespaced attribute not selected with wildcard
-----------------------------------------------

                 Key: JXPATH-109
                 URL: https://issues.apache.org/jira/browse/JXPATH-109
             Project: Commons JXPath
          Issue Type: Bug
         Environment: ALL
            Reporter: Michele Vivoda
             Fix For: Nightly Builds


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;
            }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to