RE: Looping through attributes

"Michael Kay" <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <01bd01c85c71$e9a2ce80$6501a8c0@turtle>
Show us your input, show us your code, and we can help you understand where
you have gone wrong. JDOM doesn't do anything unless you ask it to.

Michael Kay
http://www.saxonica.com/

> 
> Hello folks,
> There is one thing bodering me and I hope someone could help.
> When I loop through attributes to search for values. How do I 
> stop jdom from not printing on any attribute that it loops through.
> 
> Example:
> I search for an attribute "domain" when the corresponding 
> value matches jdom returns found. But when not found; it 
> prints on all attributes and I get a list of not found, not 
> found, corresponding to the number of attributes in the documents.
> 
> What code or how do i tell jdom to print "not found" only one time?
> 
> Bashiro
> Drammen-Norway
> 
> 
> _______________________________________________
> No banners. No pop-ups. No kidding.
> Make My Way  your home on the Web - http://www.myway.com
> 
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@you
> rhost.com

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