[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Extracting XML data from a Table in PosgreSQL

Michael Kay mike at saxonica.com
Thu Dec 27 10:53:03 PST 2007


  Extracting XML data from a Table in PosgreSQL
>   I am a newbie to XQuery, and I currently use a PostgreSQL 
> database to store some of the data in my XML files to run the 
> search using XQuery.
> 
>   It appears that I have to use some sort of collection() to 
> be able to connect my files to this particular database, and 
> from my past experience with SQL, different databases on 
> various  systems have different ways of connecting to it.

You asked this question before and no-one answered. This is probably because
there is no-one on the list who knows anything about XQuery support in
PostgreSQL. I strongly suspect that this is because there is no XQuery
support in PostgreSQL.

You can store XML as text in a pure relational database, but the only way to
get it out of a relational database is by using SQL. You might find a
third-party XQuery engine that can translate XQuery queries into SQL
queries, but I don't know of one that does this - the DataDirect engine,
which has this general architecture, will allow you to use XQuery against
data stored in relational form, but not (as far as I am aware) against XML
stored in a relational database as text.

Michael Kay
http://www.saxonica.com/ 



Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.