You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by "Yogesh L. Simmhan" <ys...@cs.indiana.edu> on 2003/11/12 23:13:58 UTC

Support for xpath/xquery?

How complete is the Xml-Beans support for XPath? I was trying to execute an
XPath expression on an XmlObject using selectPath() that used functions (name(),
contains() etc.) and it threw an exception that xqrl.jar is required. And I'm
unable to find the jar anyplace. (Is it proprietary code?) Only simple path
expressions seem to work.

The guide mentions that there is support for XPath and XQuery:
http://xml.apache.org/xmlbeans/docs/guide/conSelectingXMLwithXPath.html
Do they work as given?

java.lang.UnsupportedOperationException: This operation requires xqrl.jar
	at
org.apache.xmlbeans.impl.store.XqrlDelegate.invoke(XqrlDelegate.java:110)
	at
org.apache.xmlbeans.impl.store.XqrlDelegate.compilePath(XqrlDelegate.java:79)
	at
org.apache.xmlbeans.impl.store.Path$XqrlPathImpl.create(Path.java:289)
	at org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:192)
	at org.apache.xmlbeans.impl.store.Path.getPath(Path.java:121)
	at org.apache.xmlbeans.impl.store.Path.getPath(Path.java:100)
	at org.apache.xmlbeans.impl.store.Path.select(Path.java:85)
	at org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java:2951)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:437)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:421)
	at xbeans_test.XBeansTest.main(XBeansTest.java:66)

Regards,
--Yogesh
_______________________________________________________________
Are you looking to make a difference this holiday season?
Visit http://www.OneForIndia.org/?c=BI
everyOne counts @ www.OneForIndia.org 



- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/