Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34250

Re: XQuery with Java resources

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: XQuery with Java resources
Date 2016-05-04 20:05 -0400
Organization Aioe.org NNTP Server
Message-ID <nge2o6$7uq$1@gioia.aioe.org> (permalink)
References (1 earlier) <ng3h09$sts$1@dont-email.me> <ng8l7l$icp$1@dont-email.me> <ngcqob$4dm$2@gioia.aioe.org> <ngd07q$vnm$1@dont-email.me> <7f023e94-584a-404f-902d-644e9e53c559@googlegroups.com>

Show all headers | View raw


On 5/4/2016 10:31 AM, Eric Douglas wrote:
> On Wednesday, May 4, 2016 at 10:20:06 AM UTC-4, Jeff Higgins wrote:
>> Some years ago I had an occasion to look into XML databases. At
>> that time I fashioned up some stuff with Berkeley DB. It was a good
>> bit of work and after some time I simply lost interest. Recently I
>> have been thinking again about XML databases in connection with a
>> sort of CMS system that I'm envisioning.
>
> I hadn't even thought about XML databases, so I'm not even sure what
> that means.  Is that somehow storing XML format data in SQL?

Yes. It stores all database as XML documents. And data are
accessed via XPath (well - probably XQuery but that includes XPath).

>                                                              It is
> on my to do list to write an API for reading/writing XML data with
> flat (text) files for sharing data between 2 machines (SourceTree).
> I looked into that once but couldn't decide if there's one best way
> for that or if I need a sort of hybrid solution.  I found one API
> that claims to pick data out of the file by telling it tags to look
> for, and another API that claims to read all the data into memory and
> deal with it there, JAXP vs JAXB?

You will not benefit from an XML database for that.

Your choices must be:

you want to map between objects and XML files => use JAXB

you just want to write and read XML files => use JAXP (DOM or SAX) or StAX

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

XQuery with Java resources Priya Mohan <mmpriya66@gmail.com> - 2016-04-30 08:28 -0700
  Re: XQuery with Java resources Jeff Higgins <jeff@invalid.invalid> - 2016-05-01 00:01 +0000
    Re: XQuery with Java resources Jeff Higgins <jeff@invalid.invalid> - 2016-05-01 19:50 +0000
    Re: XQuery with Java resources Jeff Higgins <jeff@invalid.invalid> - 2016-05-02 22:44 +0000
      Re: XQuery with Java resources Arne Vajhøj <arne@vajhoej.dk> - 2016-05-04 08:42 -0400
        Re: XQuery with Java resources Jeff Higgins <jeff@invalid.invalid> - 2016-05-04 14:16 +0000
          Re: XQuery with Java resources Eric Douglas <e.d.programmer@gmail.com> - 2016-05-04 07:31 -0700
            Re: XQuery with Java resources Jeff Higgins <jeff@invalid.invalid> - 2016-05-04 17:34 +0000
            Re: XQuery with Java resources Arne Vajhøj <arne@vajhoej.dk> - 2016-05-04 20:05 -0400
              Re: XQuery with Java resources Eric Douglas <e.d.programmer@gmail.com> - 2016-05-05 06:06 -0700
                Re: XQuery with Java resources Arne Vajhøj <arne@vajhoej.dk> - 2016-05-05 10:47 -0400
          Re: XQuery with Java resources Arne Vajhøj <arne@vajhoej.dk> - 2016-05-04 20:01 -0400
            Re: XQuery with Java resources Jeff Higgins <jeff@invalid.invalid> - 2016-05-05 21:08 +0000
          Re: XQuery with Java resources Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-05 10:50 +0000

csiph-web