xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Vasilik" <eric...@bea.com>
Subject RE: Support for XQuery FLWR statements with XMLBeans
Date Tue, 27 Jul 2004 14:39:31 GMT
XmlBeans from Apache does not support XQuery.  We're looking into
various options for supporting it.  The version which ships with BEA's
products are XQuery capable (which does support FLWR statements).
- Eric
-----Original Message-----
From: Loberg, Sven G. [mailto:Sven.Loberg@BELLSOUTH.COM] 
Sent: Tuesday, July 27, 2004 6:29 AM
To: xmlbeans-user@xml.apache.org
Subject: Support for XQuery FLWR statements with XMLBeans
Does XMLBeans support the full XQuery specification or just basic query
expressions. I've seen postings stating that if you include the xqrl.jar
you can use BEA's proprietary XQuery engine with XMLBeans. If XMLBeans
does fully support fully XQuery (with the addition of xqrl.jar), are
standard FLWR statements supported?
 -----Original Message----- 
From:   Loberg, Sven G.  
Sent:   Friday, July 23, 2004 3:45 PM 
To:     'xmlbeans-user@xml.apache.org' 
Subject:        Using Xquery with XmlObjects and XmlCursor: Filtering
Out Child Elements 
Does XmlCursor.execQuery() support the ability to filter out specific
nested child elements to return a subset of child elements within an
XmlObject using the execQuery method. Or vice versa be able to specify a
subset of nested child elements to be returned (similar to a SQL
statement of "SELECT SuccessCode_Field, User_Field FROM
For example: 
An XmlObject "unfilteredDoc" with the following structure: 
<TestRequest xmlns="com/ci/services/TestResponseV1"> 
        <Message>This a test.</Message> 
Desired Result: 
<TestRequest xmlns="com/ci/services/TestResponseV1\"> 
// ---- Code ---- 
XmlCursor empCursor = unfilteredDoc.newCursor(); 
XmlCursor resultCursor = empCursor.execQuery(queryExpression); 
if (!(resultCursor.getTextValue().trim().equals(""))) 
       filteredDoc = resultCursor.getObject(); 
       // dispose of the result cursor 
I appreciate your suggestions... 

View raw message