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

Teradata Vantage™ XML Data Type

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1140-162K
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>