Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 63837 invoked from network); 25 Nov 2003 09:26:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Nov 2003 09:26:56 -0000 Received: (qmail 71652 invoked by uid 500); 25 Nov 2003 09:26:26 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 71625 invoked by uid 500); 25 Nov 2003 09:26:26 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 71604 invoked from network); 25 Nov 2003 09:26:25 -0000 Received: from unknown (HELO uni-sb.de) (134.96.252.33) by daedalus.apache.org with SMTP; 25 Nov 2003 09:26:25 -0000 Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.12.10/2003073000) with ESMTP id hAP9QaXA028384 for ; Tue, 25 Nov 2003 10:26:37 +0100 (CET) Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by cs.uni-sb.de (8.12.10/2003091100) with ESMTP id hAP9Qad7000889 for ; Tue, 25 Nov 2003 10:26:36 +0100 (CET) Received: from activemath.org (klein.ags.uni-sb.de [134.96.236.41]) by mail.cs.uni-sb.de (8.12.10/2003073000) with ESMTP id hAP9QZdc018679 for ; Tue, 25 Nov 2003 10:26:35 +0100 (CET) X-Authentication-Warning: email: Host klein.ags.uni-sb.de [134.96.236.41] claimed to be activemath.org Date: Tue, 25 Nov 2003 10:23:00 +0100 Subject: Re: Jelly: Accessing an xml database with jelly Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v553) From: Paul Libbrecht To: "Jakarta Commons Users List" Content-Transfer-Encoding: 7bit In-Reply-To: <3FC2A76E.4040806@tech.beacon-it.co.jp> Message-Id: X-Mailer: Apple Mail (2.553) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mardi, nove 25, 2003, at 01:50 Europe/Paris, Bill Keese wrote: >> Is there something already done to access an XML Database like exist >> or xindice with jelly. > > I guess the interface you are talking about is > http://www.xmldb.org/xapi/index.html ? > > I've wrote tags in Jelly to talk to Tamino (a commercial XML database). > Tamino doesn't support XMLDB API, as far as I know, but it has it's > own API supported in Java, HTTP, and SOAP (among others). The > interfaces are more complicated than the XMLDB API listed above, > because they support features such as setting isolation levels, > fetching via cursors, etc. > > The jelly api ended up being something like this: > > > for $e in document()/Employee where $e/name=${myVariable} > return $e > > (when you execute this code, the output will be the employee with the > name stored in ${myVariable}) I think all tags should offer the possibility to stream it all! That is that the result is directly fired as SAX events to the Jelly output. This is immensely important for performance! > Of course for any XML database, just like with SQL databases, the main > part is not the API, but rather the query/update language (XQuery), > which is just a "String" as far as the API is concerned. If I remember well, XUpdate (which is weaker than XQuery if I don't mistake) has an XML-encoding. I think such an encoding is actually important if working with external tools to prepare a query. Paul --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org