Functions for XML Type and XQuery | XML Data Type | Teradata Vantage - 17.10 - Functions for XML Type and XQuery - 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)

This section describes functions that provide the following functionality:

Return information about an XML type instance:
  • DataSize
Create XML nodes and sequences of XML nodes of different types:
  • CREATEXML
  • XMLDOCUMENT
  • XMLELEMENT
  • XMLFOREST
  • XMLCONCAT
  • XMLCOMMENT
  • XMLPI
  • XMLTEXT
  • XMLAGG
XML processing operations such as parsing, validation and query:
  • XMLPARSE
  • XMLVALIDATE
  • XMLQUERY
  • XMLSERIALIZE
  • XMLTABLE
  • XMLSPLIT

The functions are ANSI SQL/XML (SQL 2008) compliant.

If the argument you pass to these functions is a large object argument, it is implicitly cast to XML type, and such arguments cannot be larger than 64KB. For example, you cannot construct an element using XMLELEMENT where the content of the element is specified by a large object that is greater than 64KB in size.
The examples in this section reference tables, files, and data defined in: