Re: Exporting to XML - Mailing list pgsql-general

From Mike Rylander
Subject Re: Exporting to XML
Date
Msg-id b918cf3d0503220437776c933b@mail.gmail.com
Whole thread Raw
In response to Exporting to XML  (Charlotte Pollock <c.pollock@bangor.ac.uk>)
List pgsql-general
On Tue, 22 Mar 2005 11:44:00 +0000, Charlotte Pollock
<c.pollock@bangor.ac.uk> wrote:
> Hi all
>
> I want to export data from my postgres database.
>
> I want to output, for each record, a folder containing an XML file eg
>         <dublin_core>
>                 <dcvalue element="contributor"
> qualifier="author">Pollock, Charlotte</dcvalue>
>                 <dcvalue element="identifier"
> qualifier="isbn">asdasdasdasd</dcvalue>
>                 <dcvalue element="title" qualifier="none">Our
> Publication</dcvalue>
>                <dcvalue element="type" qualifier="none">Book</dcvalue>
>           </dublin_core>
>
> each folder (and the xml file contained within it) will contain data
> for only one record from the database.

Bibliographic(esqe) data, eh?  See my sig. :)

>
> Any suggestions on what might be a good way to tackle this problem,
> gratefully recieved
>

It depends on how the data is structured in the DB (I'm storing
MARCXML, myself) but I would suggest using a perl script with a
Template Toolkit template if you are normalizing the DC-type data on
input.

--
Mike Rylander
mrylander@gmail.com
GPLS -- PINES Development
Database Developer
http://open-ils.org

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: grant problem
Next
From: Sean Davis
Date:
Subject: Re: Constraint problem