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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to