Re: postgres and xml

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: Hrishikesh Deshmukh <hdeshmuk(at)gmail(dot)com>
Cc: Postgresql-General list <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgres and xml
Date: 2005-06-10 16:40:00
Message-ID: 920526244d25fafc06d283aa2aa3d537@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jun 10, 2005, at 12:02 PM, Bruce Momjian wrote:

> Hrishikesh Deshmukh wrote:
>> Hi All,
>>
>> Is there a way that makes it possible to export sql query results as
>> a xml file?
>> I use postgres 7.4.7 on a debian system. Do i need any packages to
>> export query results as a xml file if its possible?
>
> No, we have discussed it but it seems there is no standard XML export
> format for databases, so you have to use something to use the COPY
> output into XML. Perhaps there is an CSV to XML conversion tool you
> can
> use.

While there isn't a "format" for XML from databases, it is possible to
dump stuff from the database into some form of XML. You could then use
XSLT to transform it into other forms as needed.

Here is a link of interest, but there are numerous others like it.

http://www.samspublishing.com/articles/article.asp?p=30081&rl=1

Sean

In response to

Browse pgsql-general by date

  From Date Subject
Next Message H Hale 2005-06-10 16:47:42 foreign key constraint not being respected with type created by CREATE TYPE
Previous Message John DeSoi 2005-06-10 16:38:35 Re: Version Control?