Java XML Parser v2 xpath problem
469170Nov 16 2005 — edited Nov 17 2005I have a lot of trouble using the xpath functionality. I want to get the name of different elements. I'm using some xpath expressions which in my opinion should work (see http://www.w3.org/TR/xpath ), but they don't. I'm calling XMLNode.selectSingleNode.
For example :
/*/name()
name(/*[1])
name(/*)
name()
I've tried those with Saxon and they do work. Using the Oracle implementation an exception is thrown on most expressions. So what's wrong here?
Bye,
Jan