You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/02/08 21:00:28 UTC

[jira] Closed: (XMLBEANS-26) XMLCursor does not work

     [ http://issues.apache.org/jira/browse/XMLBEANS-26?page=history ]
     
Jacob Danner closed XMLBEANS-26:
--------------------------------


XQuery issues have been resolved since this issue was created.
In particular this one was discussed at length on the mailing lists.

> XMLCursor does not work
> -----------------------
>
>          Key: XMLBEANS-26
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-26
>      Project: XMLBeans
>         Type: Bug
>  Environment: JDK1.4.1
> XMLBeans V1
>     Reporter: Babu

>
> 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?
> QUERY:
> ---------
> 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);
> System.out.println(itemCursor.xmlText());
> This code creates a new cursor at the start of the document
> EXCEPTION:
> -----------
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org