Hi

I'm working with XML Beans and want to pass a complex XPath Query to
the XmlObject.selectPath() method. When running the application I get
an
java.lang.RuntimeException
with message 'Trying XBeans path engine... Trying Saxon... FAILED on declare
namespace
s='http://www.myNameSpace.org';.//s:[EMAIL PROTECTED]'uint1_t']'.

My Query:
       String queryExpression =
           "declare namespace s=http://www.myNameSpace.org;"; +
       ".//s:[EMAIL PROTECTED]'uint1_t']";

The FAQ on xmlbeans.apache.org says that
selectPath() can process only very simple querys, but can process more
complex ones if xbean_xpath.jar is on the classpath. But
no matter what I do, I always get the same exception. Saxon is installed and
working, too!

The Query
       String queryExpression =
           "declare namespace s=http://www.myNameSpace.org;"; +
       ".//s:IntegerArgumentType/@name";
works fine!!

How can I make XML Beans process complex XPath querys ??

Thanks for every reply.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to