xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Resolved: (XMLBEANS-26) XMLCursor does not work
Date Sat, 06 Mar 2004 05:42:31 GMT

   The following issue has been resolved as WON'T FIX.

   Resolver: Eric Vasilik
       Date: Fri, 5 Mar 2004 9:42 PM

XmlCursor is not broken.  The execQuery functionality is not available until an open source
query engine can be found and hooked up.  xqrl.jar is available with BEA products.
View the issue:

Here is an overview of the issue:
        Key: XMLBEANS-26
    Summary: XMLCursor does not work
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: WON'T FIX

    Project: XMLBeans

   Reporter: Babu

    Created: Thu, 4 Mar 2004 12:08 PM
    Updated: Fri, 5 Mar 2004 9:42 PM
Environment: JDK1.4.1
XMLBeans V1

When I tried to execute the following query, i get unsupported exception. I don't see anywhere
xqrl.jar. How do I build it? or where can I find it?


String nsText = "declare namespace po = 'http://openuri.org/easypo'";
String pathText = "$this/po:purchase-order/po:line-item[po:price <= 20.00]";
String queryText = nsText + pathText;

XmlCursor itemCursor = doc.newCursor().execQuery(queryText);

This code creates a new cursor at the start of the document


java.lang.UnsupportedOperationException: This operation requires xqrl.jar
	at org.apache.xmlbeans.impl.store.XqrlDelegate.invoke(XqrlDelegate.java:70)
	at org.apache.xmlbeans.impl.store.XqrlDelegate.compileQuery(XqrlDelegate.java:46)
	at org.apache.xmlbeans.impl.store.Path.getCompiledQuery(Path.java:223)
	at org.apache.xmlbeans.impl.store.Path.getQuery(Path.java:203)
	at org.apache.xmlbeans.impl.store.Path.query(Path.java:236)
	at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:2938)
	at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:2944)
	at com.qwest.abacus.xml.TestClient2.search(TestClient2.java:91)
	at com.qwest.abacus.xml.TestClient2.main(TestClient2.java:27)

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

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

View raw message