users@fi.java.net

StAXDocumentParser.getAttributeValue returning null

From: Ricardo Barone <ricardo.barone_at_auster.com.br>
Date: Thu, 07 Jul 2005 17:09:11 -0300

Hi,

I'm doing some tests with FI and StAX using StAXDocumentParser, and all
the calls to getAttributeValue returned null, even if both the namespace
and localName are correct.

Searching the source code, I've noticed that an identity comparison is
being performed to check the arguments, so my guess is that this is
causing the method to return null.

....
  if (_attributes.getLocalName(i) == localName &&
    _attributes.getURI(i) == namespaceURI) {
    return _attributes.getValue(i);
  }
...

Is this the expected behaviour?

Thanks!
- Ricardo