Hi Guofeng,

 

You need to download saxon 8.1.1 Xquery engine and add it to your classpath. Refer to the links below for details to how to get this jar.

 

http://wiki.apache.org/xmlbeans/XmlBeansV1Faq#selectPath http://xmlbeans.apache.org/sourceAndBinaries/index.html#XMLBeans+Binary+and+Development+Kit

 

-Rajiv

 


From: Guofeng Zhang [mailto:[EMAIL PROTECTED]
Sent: Friday, June 10, 2005 4:42 AM
To: [email protected]
Subject: Help:RuntimeException:Path too complex for xmlbeans

 

Hi,

 

I use easypo sample to study how to use XPath to select XML according to the instruction in conSelectingXMLwithXQueryPathXPath.html.

 

The following codes works well:

        String xqNamespace =

            "declare namespace po='http://openuri.org/easypo';";

        ...

        cursor.selectPath( xqNamespace + "$this//po:shipper");

 

But the following query failed:

        cursor.selectPath( xqNamespace + "$this//po:[EMAIL PROTECTED]'ss']");

It throws:

java.lang.RuntimeException: Path too complex for xmlbeans: declare namespace po='http://openuri.org/easypo';$this//po:[EMAIL PROTECTED]'ss']

 

I do not know what is wrong with the above code. Thanks for your help.

 

Guofeng

 

 

--------------------------------------------------------------------------------

Join CEO Alfred Chuang and CTO Mark Carges on June 15 for a unique online 
event, giving you the first look at a new category of enterprise software 
built specifically for Service-Oriented Architecture (SOA).

Register Now.  It's Free!

http://www.bea.com/events/june15

Reply via email to