Skip to Content.
Sympa Menu

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

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Anoop kumar V <anoopkumarv AT gmail.com>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>, xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Nux | Oracle database connections to use collection() in XQuery
  • Date: Tue, 27 Dec 2005 11:33:15 -0500

Thanks Wolfgang,

So do you mean I have not much use for NUX and I am better of connecting to
the oracle database using datadirect's XJC and once I get the required
fields - just run the XQuery queries??

Just making sure that nux has no part to play in here...

Thanks,
Anoop

On 12/26/05, Wolfgang Hoschek <wolfgang.hoschek AT mac.com> wrote:
>
> 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.
>
> Wolfgang.
>
> 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,
> > Anoop
> > _______________________________________________
> > XOM-interest mailing list
> > XOM-interest AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/xom-interest
> >
>
>


--
Thanks and best regards,
Anoop




Archive powered by MHonArc 2.6.24.

Top of Page