[jdom-interest] check if an element exists
Ernesto Reig
ernirulez at gmail.com
Wed Jan 17 01:57:56 PST 2007
What could be the easiest way to check if a certain username exists?
I have an xml like this:
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
When it comes to check if a certain user with a certain username exists, I
don know an easy way to do that. Can someone help? Thnx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20070117/94ca45af/attachment.htm
More information about the jdom-interest
mailing list