[jdom-interest] Re: getAttribute("prefix:name")
D Gross
justdave at onebox.com
Fri Mar 23 14:59:16 PST 2001
>> Would it be possible to provide either a new convenience function
or
>> change the existing behavior of the Element.getAttribute(String) and
>> Element.getAttributeValue(String) methods to allow a prefix
>> to be specified
>> as part of the name?
>>
>> E.g., element.getAttributeValue("foo:bar") or
>> element.getAttributeValue("foo", "bar")
>
> I remember thinking I'd like the same thing at one time but the problem
is
> that this call is already doing a lot internally and would have to
parse
> each name for the ":" whether or not you have provided it. This call
will
> very often be in the tightest loops in your code so I would prefer
to not do
> this, even though I appreciate the convienience.
Which is why I suggested the alternative signature (String, String).
-- Dave Gross
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
More information about the jdom-interest
mailing list