17.10 - Example: Using XMLPARSE With the DOCUMENT and STRIP WHITESPACE Clauses - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1140-171K
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>