What could be the easiest way to check if a certain username exists?<br>I have an xml like this:<br><br>&lt;tomcat-users&gt;<br>&nbsp;&nbsp; &lt;role rolename=&quot;tomcat&quot;/&gt;<br>&nbsp;&nbsp; &lt;role rolename=&quot;role1&quot;/&gt;<br>
&nbsp;&nbsp; &lt;role rolename=&quot;manager&quot;/&gt;<br>&nbsp;&nbsp; &lt;user username=&quot;tomcat&quot; password=&quot;tomcat&quot; roles=&quot;tomcat&quot;/&gt;<br>&nbsp;&nbsp; &lt;user username=&quot;both&quot; password=&quot;tomcat&quot; roles=&quot;tomcat,role1&quot;/&gt; 
<br>&nbsp;&nbsp; &lt;user username=&quot;role1&quot; password=&quot;tomcat&quot; roles=&quot;role1&quot;/&gt;<br>&lt;/tomcat-users&gt;<br><br>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.
<br>