You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Liße, "Jan (TEVEGE)" <JL...@tevege.de> on 2005/05/24 09:50:39 UTC

Complex XPath expression not working in 2.00-beta1

Hello,

I'm using XMLBeans 2.0.0-beta1 and according to the faq
i put the Saxon8.jar on my classpath to have support for complex XPath-expressions.
When i try to run the following code:

File file = new File("prices.xml");
String query ="declare namespace go='http://mydomain.de/go'; $this/go:prices/go:item[1]";
XmlObject x = XmlObject.Factory.parse(file);
XmlObject[] result = null;
result = x.selectPath( query );

i get a RuntimeException: Path too complex for xmlbeans...

Just for the sake of completeness here's the content of my prices.xml:

<prices xmlns="http://mydomain.de/go/">
<item cid="1" mid="1" price="10"/>
<item cid="2" mid="1" price="10"/>
<item cid="3" mid="1" price="10"/>
</prices>


Do i miss something, why is it not working?

Jan Liße




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org