Dear All,

The source at org.jaxen.dom.DocumentNavigator line 384 decides if an 
attribute is a namespace declaration for inclusion in the result for 
getNamespaceAxisIterator():

         if (att.getNodeName().startsWith("xmlns")) {
                 /* ... */
         }

It seems to me, however, that this will be incorrect in cases where a 
non-namespace attribute's name begins with those 5 characters (e.g., <Foo 
xmlnsIndex="256" />). I think a more correct expression would be:

         if (att.getNodeName().equals("xmlns") ||
             att.getNodeName().startsWith("xmlns:")) {
                 /* ... */
         }

Or have I misunderstood something?

Best,


Ari Kermaier    [EMAIL PROTECTED]
Senior Software Engineer
Phaos Technology Corp.    http://www.phaos.com/



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to