16.20 - Example: Using XMLPARSE With the CONTENT and PRESERVE 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(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>