|
XPath problem: msg#00034text.xml.xmlbeans.user
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | issue with namespace: 00034, gopi.rcr |
|---|---|
| Next by Date: | RE: Accepting any URL on the default namespace declaration: 00034, Webber, David \(NIH/OD\) [C] |
| Previous by Thread: | issue with namespacei: 00034, gopi.rcr |
| Next by Thread: | RE: XPath problem: 00034, Webber, David \(NIH/OD\) [C] |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |