• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why xpath crashes?

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If tag web-app of my web.xml document looks like below:
<web-app
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"
version="2.4">
....
then xpath crashes with unknown exception when I try to access elements under web-app, like web-app/servlet. However if I remove xmlns attributes, then it works fine. I use standard xpath from JDK 1.5.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!