Skip site navigation (1) Skip section navigation (2)

Re: New XML section for documentation

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>
Subject: Re: New XML section for documentation
Date: 2006-08-26 06:08:12
Message-ID: 200608260808.13629.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-docspgsql-hackers
Bruce Momjian wrote:
> XML Document Support
> ====================
> XML support is not one capability, but a variety of features
> supported by a database.

database system

> Storage
> -------
> PostgreSQL stores XML documents as ordinary text documents.

It is "possible" to do that, but this sounds like it's done 
automatically or implicitly.  Maybe:

"PostgreSQL does not have a specialized XML data type.  The recommended 
way is to store XML documents as text."

> Import/Export
> -------------
> Because XML documents are stored as normal text documents, they can
> be imported/exported with little complexity.

Import/export refers to exporting schema data with XML decorations.  Of 
course you can export column data trivially, but that's not what this 
is about.

> Validation
> ----------
> /contrib/xml2 has a function called xml_valid() that can be used in
> a CHECK constraint to enforce that a field contains valid XML.  It
> does not support validation against a specific XML schema.

Then this is not validation but only checking for well-formedness.  The 
xml2 README says so, in fact.

> Indexing
> --------

I think the expression index capability combined with contrib/xml2 is 
more relevant here than the full-text search capability.

> Transforming
> ------------
> /contrib/xml2 supports XSL transformations.

That's XSLT.

> XML to SQL Mapping
> -------------------
> This involves converting XML data to and from relational structures.
> PostgreSQL has no internal support for such mapping, and relies on
> external tools to do such conversions.

Are there instances of such tools?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

pgsql-docs by date

Next:From: Nikolay SamokhvalovDate: 2006-08-26 06:37:19
Subject: Re: New XML section for documentation
Previous:From: Magnus HaganderDate: 2006-08-26 05:19:38
Subject: Re: New XML section for documentation

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2006-08-26 06:10:07
Subject: Re: [Open Item] Re: Autovacuum on by default?
Previous:From: Magnus HaganderDate: 2006-08-26 05:19:38
Subject: Re: New XML section for documentation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group