[jdom-interest] getAttribute("prefix:name")

philip.nelson at omniresources.com philip.nelson at omniresources.com
Fri Mar 23 06:57:22 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.



More information about the jdom-interest mailing list