I inherited some code that is using XPath for which I am a novice. I have it now so that it loads the document, but when the document.selectPath(queryPath) it always fails with the following error:
java.lang.RuntimeException: Trying XBeans path engine... Trying XQRL... Trying delegated path engine... FAILED on // at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:173) at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:130) 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:462) at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:446)
You need an XPath engine in your classpath, which one bepends on the XMLBeans version, see http://wiki.apache.org/xmlbeans/XmlBeansFaq#whatJars