Re: PostgreSQL and XML

From: John Gray <jgray(at)azuli(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL and XML
Date: 2005-03-03 22:09:34
Message-ID: pan.2005.03.03.22.09.32.95968@azuli.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 03 Mar 2005 07:59:14 +0000, Mario Splivalo wrote:

> Can I use XPath queries in any form to retrive data from XML documents and
> 'transfer' them to table-like sets?
>
Basically, yes - if you look at the README for contrib/xml2 in the
PostgreSQL source distribution (v8.0.1) there is an example using the
xpath_table function which allows you to run several XPath expressions in
parallel against a set of rows and turn the result into a table. To use
this functionality you will need to build the contrib/xml2 mocule - your
machine will need libxml (http://xmlsoft.org/)

> Something as MSSQL's OPENXML keyword?
>
In a way (from reading half a webpage) - I'm not a user of MSSQL so I
can't really compare against how their functions work!

Regards

John

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2005-03-03 22:18:22 Re: Table inherits...
Previous Message Sean Davis 2005-03-03 21:56:13 Re: GUI