You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Guofeng Zhang <gu...@radvision.com> on 2005/06/10 13:41:56 UTC
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:customer[@nx='ss']");
It throws:
java.lang.RuntimeException: Path too complex for xmlbeans: declare
namespace po='http://openuri.org/easypo';$this//po:customer[@nx='ss']
I do not know what is wrong with the above code. Thanks for your help.
Guofeng