Functions for XML Type and XQuery | XML Data Type | Teradata Vantage - Functions for XML Type and XQuery - Analytics Database - Teradata Vantage

XML Data Type

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
lifecycle
latest
Product Category
Teradata Vantageā„¢

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: