I try to execute xpath expression in web.xml in Intellij Idea
Xpath Expression
//param-value[email]
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Archetype Created Web Application</display-name>
<servlet>
<servlet-name>ServletName</servlet-name>
<servlet-class>com.ServletDemo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServletName</servlet-name>
<url-pattern>/Demo1</url-pattern>
</servlet-mapping>
<context-param>
<param-name>email</param-name>
<param-value>admin@email.com</param-value>
</context-param>
</web-app>
And I have no results. Moreover Idea highlight param-value as it does not exist and when I clik ctrl+space I see no tags! I try use this plugin in another project and another xml - it works, but in that case it is not.
Any ideas? May be I missed some configuration?
UPDATED
I remove attributes from web-app tag and expression start works. But Why?