Re: New XML section for documentation

From: "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "Bruce Momjian" <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: New XML section for documentation
Date: 2006-08-26 06:37:19
Message-ID: e431ff4c0608252337u4801cf34he200e57a3242661d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

On 8/26/06, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> Bruce Momjian wrote:
> > 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.

Exactly. contrib/xml2 mixes the term here, xml_valid() should be
another function, that takes two types of data - XML value and
corresponding XML schema - and validate the XML data. Actually, the
latest version of SQL/XML standard includes such a function
(XMLVALIDATE).

If you decide to include the mentioning about contrib/xml2 to docs, I
would suggest the patch for this module. The patch renames that
function to xml_check() and adds xml_array() (issue from the current
TODO). Or it's too late for 8.2?

Also, I would add a little introduction to XML terms (from XML
standards) to this documentation section.

--
Best regards,
Nikolay

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-08-26 08:00:35 Re: New XML section for documentation
Previous Message Peter Eisentraut 2006-08-26 06:08:12 Re: New XML section for documentation

Browse pgsql-hackers by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-08-26 08:00:35 Re: New XML section for documentation
Previous Message Peter Eisentraut 2006-08-26 06:10:07 Re: [Open Item] Re: Autovacuum on by default?