Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 70119 invoked from network); 1 Sep 2006 16:54:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 16:54:49 -0000 Received: (qmail 94546 invoked by uid 500); 1 Sep 2006 16:54:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 94335 invoked by uid 500); 1 Sep 2006 16:54:48 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 94326 invoked by uid 99); 1 Sep 2006 16:54:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 09:54:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.202] (HELO smtp103.sbc.mail.mud.yahoo.com) (68.142.198.202) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 01 Sep 2006 09:54:47 -0700 Received: (qmail 90368 invoked from network); 1 Sep 2006 16:54:25 -0000 Received: from unknown (HELO ?127.0.0.1?) (ddebrunner@sbcglobal.net@75.24.104.226 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 1 Sep 2006 16:54:24 -0000 Message-ID: <44F865BC.2010509@apache.org> Date: Fri, 01 Sep 2006 09:54:20 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Doc Review: Reference Guide. References: <44F849DF.9040500@gmail.com> In-Reply-To: <44F849DF.9040500@gmail.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Army wrote: > -- 1-- > > Sub-section: Built-in functions -> CAST -> Conversions of XML values > URL: http://db.apache.org/derby/docs/dev/ref/rrefsqlj33562.html > > The following sentence seems a bit odd: > > An XML value cannot be converted to a non-XML type. To convert an XML > value to a string, you must use the SQL/XML serialization operator > XMLSERIALIZE. > > It sounds like we're saying "You can't do , but in order to do , > here's what you do." Maybe reword to: > > An XML value cannot be converted to any non-XML type using a CAST. You > can, however, retrieve an XML value as a string by using the SQL/XML > serialization operator XMLSERIALIZE. > > Or something to that effect. To be correct XMLSERIALZE converts to a 'character type', not a 'string'. String is Java terminology, this is the SQL reference. And similar to the comment below, XMLSERIALIZE does not 'retrieve' anything, it's just a SQL operator. Maybe something like An XML value cannot be converted to any non-XML type using an explicit or implicit CAST. The XMLSERIALIZE operator provides the ability to represent (convert?) an XML type as (to?) a character type. > -- 10 -- > > Sub-section: Built-in functions -> XMLSERIALIZE: > URL: http://db.apache.org/derby/docs/dev/ref/rreffuncxmlserialize.html > > Something about this sentence seems awkard to me: > > Using the XMLSERIALIZE operator is the only way that you > can view serialized contents. > > Can we reword it to something like the following (in the context of the > page, this suggestion seems more appropriate than it does right here): > > There is no other way to view the contents of a Derby XML > value. The use of 'view' here is very strange and I think incorrect. XMLSERIALIZE is an operator that converts a XML type to a character type, it does not provide any viewing capabilities. The ability to view such a value is provided by the application (e.g. ij or a web-browser). Dan.