I was just trying to use count() funtion in a simple
Xpath expression and I get this RuntimeException :
Exception in thread "main"
java.lang.RuntimeException: Trying XBeans path
engine... Trying XQRL... Trying Saxon... FAILED on
declare namespace ns=....
I see numerous postings from others who had the
similar issue and there are no responses indicating
any specific solution. Before I waste some more time
on this, I just wanted to know if it's even worth
using XPath support in XmlBeans.
Here's my env:
xmlbeans 2.3.0 + all the latest Jars in classpath.
The expression having issue:
"count($this/ns:root/ns:owners/ns:owner)"
I also tried the following but has the similar issue:
"count(//ns:owners/ns:owner)"
Tried getting all the owner elements (Still the same
issue):
"$this//ns:owners/ns:owner"
But this works: "$this/ns:root/ns:owners/ns:owner"
any clues to get this simple crap working!!
OR should I switch to Jdom for Xpath processing?
-D
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]