16.20 - Example: Using XMLPARSE With the DOCUMENT 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(DOCUMENT
   '<Customer xml:space="default">
      <Address>Address with lots of space</Address>
      <Address>More space  </Address>
   </Customer>'
   PRESERVE WHITESPACE);

The result of the query is:

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