commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Vivoda (JIRA)" <j...@apache.org>
Subject [jira] Created: (JXPATH-109) Namespaced attribute not selected with wildcard
Date Mon, 17 Dec 2007 17:01:49 GMT
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.


Mime
View raw message