Example: Using XMLPARSE With the CONTENT and PRESERVE 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(CONTENT
   '<Customer>
           <!--Customer record-->
   </Customer>'
   PRESERVE WHITESPACE);

The result of the query is:

XMLPARSE( CONTENT '<Customer>        <!--Customer record--> </Customer>' PRESERVE WHITESPACE )
---------------------------------------------------------------------------------
<Customer>       <!--Customer record-->  </Customer>