From: jon Date: March 2 2008 10:11am Subject: svn commit - mysqldoc@docsrva: r10096 - in trunk: refman-5.1 refman-6.0 List-Archive: http://lists.mysql.com/commits/43270 Message-Id: <200803021011.m22ABRgX031071@docsrva.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Author: jstephens Date: 2008-03-02 11:11:26 +0100 (Sun, 02 Mar 2008) New Revision: 10096 Log: Cleaned up inexact usage of "valid XML"/"well-formed XML" (Thanks, Paul!) Modified: trunk/refman-5.1/functions-core.xml trunk/refman-6.0/functions-core.xml Modified: trunk/refman-5.1/functions-core.xml =================================================================== --- trunk/refman-5.1/functions-core.xml 2008-03-02 09:44:48 UTC (rev 10095) +++ trunk/refman-5.1/functions-core.xml 2008-03-02 10:11:26 UTC (rev 10096) Changed blocks: 4, Lines Added: 17, Lines Deleted: 12; 3145 bytes @@ -13467,10 +13467,10 @@ (including the implicit /text()) — for whatever reason, as long as xpath_expr is valid, and - xml_frag is well-formed — an - empty string is returned. No distinction is made between a - match on an empty element and no match at all. This is by - design. + xml_frag consists of elements which + are properly nested and closed — an empty string is + returned. No distinction is made between a match on an empty + element and no match at all. This is by design. @@ -13561,8 +13561,9 @@ Beginning with MySQL 5.1.12, NULL is - returned if xml_frag is invalid - XML, and a warning is generated, as shown in this example: + returned if xml_frag contains + elements which are not properly nested or closed, and a + warning is generated, as shown in this example: @@ -14221,17 +14222,19 @@ For both ExtractValue() and UpdateXML(), the XPath locator - used must be valid and the XML to be searched must be - well-formed. If the locator is invalid, an error is generated: + used must be valid and the XML to be searched must consist of + elements which are properly nested and closed. If the locator is + invalid, an error is generated: mysql> SELECT ExtractValue('<a>c</a><b/>', '/&a'); ERROR 1105 (HY000): XPATH syntax error: '&a' - If xml_frag is invalid XML, then, - beginning with MySQL 5.1.12, NULL is - returned, and a warning is generated, as shown in this example: + If xml_frag does not consist of + elements which are properly nested and closed, then + NULL is returned, and a warning is generated, + as shown in this example: mysql> SELECT ExtractValue('<a>c</a><b', '//a'); @@ -14266,7 +14269,9 @@ The replacement XML used as the third argument to UpdateXML() is - not checked for well-formedness. + not checked to determine whether it + consists solely of elements which are properly nested and + closed. Modified: trunk/refman-6.0/functions-core.xml =================================================================== --- trunk/refman-6.0/functions-core.xml 2008-03-02 09:44:48 UTC (rev 10095) +++ trunk/refman-6.0/functions-core.xml 2008-03-02 10:11:26 UTC (rev 10096) Changed blocks: 4, Lines Added: 15, Lines Deleted: 10; 2860 bytes @@ -13891,10 +13891,10 @@ (including the implicit /text()) — for whatever reason, as long as xpath_expr is valid, and - xml_frag is well-formed — an - empty string is returned. No distinction is made between a - match on an empty element and no match at all. This is by - design. + xml_frag consists of elements which + are properly nested and closed — an empty string is + returned. No distinction is made between a match on an empty + element and no match at all. This is by design. @@ -13983,8 +13983,9 @@ NULL is returned if - xml_frag is invalid XML, and a - warning is generated, as shown in this example: + xml_frag contains elements which + are not properly nested or closed, and a warning is generated, + as shown in this example: @@ -14628,15 +14629,17 @@ For both ExtractValue() and UpdateXML(), the XPath locator - used must be valid and the XML to be searched must be - well-formed. If the locator is invalid, an error is generated: + used must be valid and the XML to be searched must consist of + elements which are properly nested and closed. If the locator is + invalid, an error is generated: mysql> SELECT ExtractValue('<a>c</a><b/>', '/&a'); ERROR 1105 (HY000): XPATH syntax error: '&a' - If xml_frag is invalid XML, then + If xml_frag does not consist of + elements which are properly nested and closed, then NULL is returned, and a warning is generated, as shown in this example: @@ -14670,7 +14673,9 @@ The replacement XML used as the third argument to UpdateXML() is - not checked for well-formedness. + not checked to determine whether it + consists solely of elements which are properly nested and + closed.