Re: Returning XML with SELECT statements? IS THIS

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: Ryan Griggs <ryan(dot)griggs(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Returning XML with SELECT statements? IS THIS
Date: 2005-09-10 20:09:14
Message-ID: 1126382954.28391.6.camel@Andrea.peacock.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am Freitag, den 09.09.2005, 12:56 -0400 schrieb Ryan Griggs:
> I desire to develop an XML-based web application which interfaces with
> a backend PostgreSQL database.
>
> Is there any way to instruct the SELECT statements to return results
> as XML rather than a dataset? Microsoft SQL Server uses the “for xml
> auto” option to return XML results.
>
>
>
> Thank you for information on this issue!

You can write a function to turn your row output into XML.

Btw. whats the point? You would have to connect natively
anyway - now you additionally have the significant
overhead in both wire data and parsing...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brian Hirt 2005-09-10 20:19:43 can't drop table
Previous Message Tony Caduto 2005-09-10 19:46:42 Re: EMS PostgreSQL Manager vs. TheKompany DataArchitect