logo       

SV: XPath problem: msg#00043

text.xml.xmlbeans.user

Subject: SV: XPath problem

Thanks,
 
that solved it! Now I just have to get my xpath straight.

/spn

 


Fra: Radu Preotiuc-Pietro [mailto:radup@xxxxxxx]
Sendt: 21. november 2006 22:53
Til: user@xxxxxxxxxxxxxxxxxxx
Emne: RE: XPath problem

It looks to me like you're missing xbean_xpath.jar from your classpath. This contains some "glue-code" that's Saxon-dependent and therefore can't be included in the normal xbean.jar.
 
Radu


From: Iveland, Espen [mailto:espen.iveland@xxxxxxxxx]
Sent: Tuesday, November 21, 2006 1:08 AM
To: user@xxxxxxxxxxxxxxxxxxx
Subject: XPath problem

Hi,
 
I want to make a query using xpath against an XMLObject, but no matter what I put in my query, I get the same exception:
 
java.lang.RuntimeException:  Trying XBeans path engine... Trying XQRL... Trying Saxon... FAILED on <my query string>
 at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:131)
 at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:91)
 at org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.java:902)
 at org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java:2634)
 at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:431)
 at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:415)
 ...
 
A typical query that fails may look like:
 
String query = "declare namespace s='http://<my.name.space>;" +
               "$this/s:objects/s:object/s:id eq " + id;
 
 
I use XML beans 2.2.0 and have tried saxon 8.6.1 and 8.8 with the same result. My classpath includes (in this order) saxon8.jar, saxon8-xpath.jar, xbean.jar and jsr173_1.0_api.jar. I see that many people have the same problem, but I have not seen a solution. I have limited experience with xpath, so the problem could be there, but I am really stuck. Any help would be appreciated.
 
Thanks
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise