Re: Looping through attributes

"Grzegorz Kaczor" <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hi

>
> 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.

Grzegorz
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.