Hello,
Is it possible to write xpath expressions that will query a web server's web.xml like this one :
<web-app>
<display-name>My Application</display-name>
<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>com.mycompany.MyServlet</servlet-class>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/first</url-pattern>
</servlet-mapping>
</web-app>
I would want to know if a particular web.xml has certain set of tags present or not. Like <servlet> and </servlet>
And if yes to get their count.
How can this be achieved using XPath expressions?
Tahnks.