Hi Jan,

I tried this and it seems to go through fine.
What version of Saxon do you have? XmlBeans works with Saxon 8.2.

-Rajiv

-----Original Message-----
From: Li�e, Jan (TEVEGE) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 12:51 AM
To: [email protected]
Subject: 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: [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