I am presumming your using Xmlbeans V2.0 ...

Make sure you have the Saxon 8.1b JAR on your classpath.

Link to correct version is :-
 
http://easynews.dl.sourceforge.net/sourceforge/saxon/saxonb8-1.zip

Other versions of Saxon do not work.

Don 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 12 September 2005 13:18
To: [email protected]
Subject: XPath with XML Beans

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]


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

Reply via email to