16.20 - Example: Using XMLPARSE With the DOCUMENT and STRIP WHITESPACE Clauses - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ XML Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1140-162K
Language
English (United States)
SELECT XMLPARSE(DOCUMENT
   '<Customer xml:space="preserve">
      <Address>Address with lots of space</Address>
      <Address>More space  </Address>
   </Customer>'
   STRIP WHITESPACE);

The result of the query is:

XMLPARSE( DOCUMENT '<Customer xml:space="preserve"> <Address> ...
-----------------------------------------------------------------
<Customer xml:space="preserve">   <Address>Address with lots of space</Address>     <Address>More space  </Address>  </Customer>