Java Mailing List Archive

http://www.junlu.com/

Home » JDOM Projects »

[jdom-interest] Looping through attributes

Bashiro

2008-01-21

Replies: Find Java Web Hosting

Author LoginPost Reply


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@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.