[jdom-interest] Element.getAttribute()

Michael Lupp M.Lupp at ids-scheer.de
Mon Nov 27 04:04:09 PST 2000


in an old API-documentation of Element.getAttribute I found that this method would throw an exception, if there is no such attribute. But in the actual API-documentation, this method doesn't throw an exception. So what happens if there is no such attribute? Will I get null? If it is so, then I would have to test every attribute, if it is null, before I try to get the value. I think this is not a optimal behaviour.

If I don't get null, what will I get?


More information about the jdom-interest mailing list