Create in the functions-xml section
authorAlvaro Herrera
Wed, 1 Mar 2017 22:27:24 +0000 (19:27 -0300)
committerAlvaro Herrera
Wed, 1 Mar 2017 22:27:24 +0000 (19:27 -0300)
This is a small change so that a new XMLTABLE sect3 can be added easily
later.

Author: Craig Ringer
Discussion: https://postgr.es/m/CAFj8pRAgfzMD-LoSmnMGybD0WsEznLHWap8DO79+-GTRAPR4qA@mail.gmail.com

doc/src/sgml/func.sgml

index 9c53e4288cca861a4748529b5cdc54f5ee9fea59..40af0530a2f6911c2fb9ad40b4c4b9bf83d4c367 100644 (file)
@@ -10328,10 +10328,6 @@ SELECT xml_is_well_formed_document('
   
    Processing XML
 
-   
-    XPath
-   
-
    
     To process values of data type xml, PostgreSQL offers
     the functions xpath and
@@ -10339,39 +10335,46 @@ SELECT xml_is_well_formed_document('
     expressions.
    
 
+   
+    <literal>xpath</literal>
+
+    
+     XPath
+    
+
 
 xpath(xpathxml nsarray)
 
 
-   
-    The function xpath evaluates the XPath
-    expression xpath (a text value)
-    against the XML value
-    xml.  It returns an array of XML values
-    corresponding to the node set produced by the XPath expression.
-    If the XPath expression returns a scalar value rather than a node set,
-    a single-element array is returned.
-   
+    
+     The function xpath evaluates the XPath
+     expression xpath (a text value)
+     against the XML value
+     xml.  It returns an array of XML values
+     corresponding to the node set produced by the XPath expression.
+     If the XPath expression returns a scalar value rather than a node set,
+     a single-element array is returned.
+    
 
-  
-    The second argument must be a well formed XML document. In particular,
-    it must have a single root node element.
-  
+    
+     The second argument must be a well formed XML document. In particular,
+     it must have a single root node element.
+    
 
-   
-    The optional third argument of the function is an array of namespace
-    mappings.  This array should be a two-dimensional text array with
-    the length of the second axis being equal to 2 (i.e., it should be an
-    array of arrays, each of which consists of exactly 2 elements).
-    The first element of each array entry is the namespace name (alias), the
-    second the namespace URI. It is not required that aliases provided in
-    this array be the same as those being used in the XML document itself (in
-    other words, both in the XML document and in the xpath
-    function context, aliases are local).
-   
+    
+     The optional third argument of the function is an array of namespace
+     mappings.  This array should be a two-dimensional text array with
+     the length of the second axis being equal to 2 (i.e., it should be an
+     array of arrays, each of which consists of exactly 2 elements).
+     The first element of each array entry is the namespace name (alias), the
+     second the namespace URI. It is not required that aliases provided in
+     this array be the same as those being used in the XML document itself (in
+     other words, both in the XML document and in the xpath
+     function context, aliases are local).
+    
 
-   
-    Example:
+    
+     Example:
 
 SELECT xpath('/my:a/text()', 'test',
              ARRAY[ARRAY['my', 'http://example.com']]);
@@ -10381,10 +10384,10 @@ SELECT xpath('/my:a/text()', 'test',
  {test}
 (1 row)
 ]]>
-   
+    
 
-   
-    To deal with default (anonymous) namespaces, do something like this:
+    
+     To deal with default (anonymous) namespaces, do something like this:
 
 SELECT xpath('//mydefns:b/text()', 'test',
              ARRAY[ARRAY['mydefns', 'http://example.com']]);
@@ -10394,27 +10397,31 @@ SELECT xpath('//mydefns:b/text()', 'test
  {test}
 (1 row)
 ]]>
-   
+    
+   
 
-   
-    xpath_exists
-   
+   
+    <literal>xpath_exists</literal>
+
+    
+     xpath_exists
+    
 
 
 xpath_exists(xpathxml nsarray)
 
 
-   
-    The function xpath_exists is a specialized form
-    of the xpath function.  Instead of returning the
-    individual XML values that satisfy the XPath, this function returns a
-    Boolean indicating whether the query was satisfied or not.  This
-    function is equivalent to the standard XMLEXISTS predicate,
-    except that it also offers support for a namespace mapping argument.
-   
+    
+     The function xpath_exists is a specialized form
+     of the xpath function.  Instead of returning the
+     individual XML values that satisfy the XPath, this function returns a
+     Boolean indicating whether the query was satisfied or not.  This
+     function is equivalent to the standard XMLEXISTS predicate,
+     except that it also offers support for a namespace mapping argument.
+    
 
-   
-    Example:
+    
+     Example:
 
 SELECT xpath_exists('/my:a/text()', 'test',
                      ARRAY[ARRAY['my', 'http://example.com']]);
@@ -10424,7 +10431,8 @@ SELECT xpath_exists('/my:a/text()', 'test
  t
 (1 row)
 ]]>
-   
+    
+