Re: postgres and xml - Mailing list pgsql-general

From Sean Davis
Subject Re: postgres and xml
Date
Msg-id 920526244d25fafc06d283aa2aa3d537@mail.nih.gov
Whole thread Raw
In response to Re: postgres and xml  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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


pgsql-general by date:

Previous
From: John DeSoi
Date:
Subject: Re: Version Control?
Next
From: H Hale
Date:
Subject: foreign key constraint not being respected with type created by CREATE TYPE