XML Data Type | Teradata Vantage - XML Data Type - 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
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
lifecycle
latest
Product Category
Teradata Vantageā„¢

Vantage provides the XML data type for XML data. You can use it in the same way as other SQL data types supported by Teradata.

Using the XML type, you can store XML content in a compact binary form that preserves the information set of the XML document, including the hierarchy information and type information derived from XML validation. The document identity is preserved as opposed to XML shredding, which only extracts values out of the XML document.

The XML type stores XML values up to 2GB in size and supports XML processing functionality including the following:
  • XSD validation
  • XPath and XQuery-based queries
  • XSLT transformations of XML content

While a common use of the XML type instance is to represent a single XML document, it can also represent a sequence of items where an item is an element, attribute or even an atomic value.

It can be used for XML values such as the following:
  • Fragments of XML documents, such as nodes like elements, attributes, or text
  • Values of XML schema predefined simple types, such as string or int