• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why xpath crashes?  RSS feed

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:
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!