X-Original-To: pgsql-hackers-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9751C9FBEF7 for ; Sat, 26 Aug 2006 03:38:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 97919-04 for ; Sat, 26 Aug 2006 03:37:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by postgresql.org (Postfix) with ESMTP id 8DC929FBEF4 for ; Sat, 26 Aug 2006 03:37:20 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d80so1521072pyd for ; Fri, 25 Aug 2006 23:37:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k8zyjoowLVrPBmg/CyiuFGF7jz58i+cSRQ7CXfnZcOBBtjR53vJPeHERo9jn/ktbNlGjihC4WcdBcTZBhX+tO5fBVtyLbctEehiisKj94OxDcKPeD9r72LA3fJfShSdBXJI1EP6Z847jBU5L6gUThlkT37qK6ShROPnDuQRytPM= Received: by 10.65.95.14 with SMTP id x14mr4750898qbl; Fri, 25 Aug 2006 23:37:19 -0700 (PDT) Received: by 10.64.250.15 with HTTP; Fri, 25 Aug 2006 23:37:19 -0700 (PDT) Message-ID: Date: Sat, 26 Aug 2006 10:37:19 +0400 From: "Nikolay Samokhvalov" Reply-To: nikolay@samokhvalov.com To: "Peter Eisentraut" Subject: Re: New XML section for documentation Cc: "Bruce Momjian" , PostgreSQL-development In-Reply-To: <200608260808.13629.peter_e@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200608252346.k7PNkvT15748@momjian.us> <200608260808.13629.peter_e@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.087 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/1716 X-Sequence-Number: 89209 On 8/26/06, Peter Eisentraut 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