[jdom-interest] Looping through attributes

Grzegorz Kaczor grzegorz.kaczor at gmail.com
Tue Jan 22 11:33:37 PST 2008


> Thanks for the mail.
> And thanks for warning me about the else clause.
> Do you have any suggestions on how to let jdom
> display a message when the attribute is not dound ?

To have a boolean variable 'found' initialized to false before the
loop, set it to true on find and use 'break' instead of 'return'? Just
a suggestion.


More information about the jdom-interest mailing list