users@fi.java.net

Re: StAXDocumentParser.getAttributeValue returning null

From: Ricardo Barone <ricardo.barone_at_auster.com.br>
Date: Thu, 14 Jul 2005 12:39:03 -0300

Hi Paul,

Done. Thanks for the feedback.

Ricardo


On Thu, 2005-07-14 at 15:29 +0200, Paul Sandoz wrote:
> Hi Ricardo,
>
> Could you add this to the issues:
>
> https://fi.dev.java.net/servlets/ProjectIssues
>
> so we can track this and you can get updates.
>
> Thanks,
> Paul.
>
> Ricardo Barone wrote:
> > 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
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_fi.dev.java.net
> > For additional commands, e-mail: users-help_at_fi.dev.java.net
> >
>
-- 
Ricardo Barone
Auster Solutions do Brasil
Office: +55.11.5096.5581
Mobile: +55.11.9903.4464
www.auster.com.br