You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jayaraman, Babu" <ba...@qwest.com> on 2004/03/04 21:30:21 UTC
XMLCursor does not work
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-26
Summary: XMLCursor does not work
Type: Bug
Status: Unassigned
Priority: Major
Project: XMLBeans
Assignee:
Reporter: Babu
Created: Thu, 4 Mar 2004 12:08 PM
Updated: Thu, 4 Mar 2004 12:08 PM
Environment: JDK1.4.1
XMLBeans V1
Description:
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.ja
va: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)
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.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: 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/