Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Nux | Oracle database connections to use collection() in XQuery

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <wolfgang.hoschek AT>
  • To: Anoop kumar V <anoopkumarv AT>
  • Cc: xom-interest AT
  • Subject: Re: [XOM-interest] Nux | Oracle database connections to use collection() in XQuery
  • Date: Mon, 26 Dec 2005 20:29:49 -0800

I'm not sure how you might have got the impression that Nux is, or connects to, a database system.
Sorry, but that's not what it's designed for. Rather it's designed to operate on streams or main memory trees.

You could override the Saxon collection() function via Configuration.setCollectionURIResolver, but this is 1) not really a task for beginners as it involves Saxon specific knowledge and 2) unlikely to scale in a database setting unless perhaps in very specific simple cases.

So, for this sort of functionality, you're probably much better off with something like DataDirect XQuery or Oracle's built in beta support for XQuery, or similar.


On Dec 26, 2005, at 4:00 PM, Anoop kumar V wrote:

Hi All,

I am trying to use Nux in one of our projects. I have read that it supports
XQuery and is really one of the fastest solutions available.

What I am trying to do is to connect to an Oracle database and run XQuery on
every field of a table that contains an xml document. I intend to use the
collection() input feature of XQuery.

What I am struggling with now is how can I tell collection() to look at a
particular table. Does Nux itself provide some handles that will establish a
datasource or make a connection to a database provided I give it the
connection string?? Then every table within that connection (schema in
oracle) will be available to the collection() input of XQuery??

As of now I am still experimenting and I have found a utility XJC (xdbc)
from datadirect and another utility called Xquare that provide some API to
connect to a datasource. I can go ahead and use those but I do not want to
miss out on the superior performance features of nux if nux provides the
same hooks.

Also - I have read that the collection() is dependent on the actual database
that it will operate upon - in my case I will be using oracle 9i - so is
there something I should look out for - any documentation abt this would be
immensely helpful

Thanks and best regards,
XOM-interest mailing list
XOM-interest AT

Archive powered by MHonArc 2.6.24.

Top of Page