XMLVALIDATE Syntax - Advanced SQL Engine - Teradata Database

XML Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
kxe1590704060061.ditamap
dita:ditavalPath
kxe1590704060061.ditaval
dita:id
B035-1140
lifecycle
previous
Product Category
Teradata Vantageā„¢
XMLVALIDATE (
  { DOCUMENT | CONTENT | SEQUENCE }
  XML_value_expr
  ACCORDING TO XMLSCHEMA
  VALUE XML_value_expr
  [ NAMESPACE 'XML_URI' | NO NAMESPACE ]
  [ ELEMENT XML_valid_element_name ]
)

Syntax Elements

DOCUMENT
XML_value_expr is a sequence of one item, which is a document node with a single element node child.
CONTENT
XML_value_expr is a sequence of one item, which is a document node that can have multiple child elements.
SEQUENCE
XML_value_expr is a sequence.
XML_value_expr
The XML type instance to be validated.
If XML_value_expr is NULL, the function returns NULL.
If XML_value_expr is an empty sequence, the function returns an empty sequence.
If XML_value_expr is a sequence that contains even a single item that is an atomic value, attribute node, namespace node or text node, an error is raised.
ACCORDING TO XMLSCHEMA
The XML schema to use to validate the XML type instance.
VALUE XML_value_expr
An XML type instance representing the XML schema.
XML_valid_element_name
The element declaration to be used for validation.
'XML_URI'
The URI (Uniform Resource Identifier) that identifies the XML schema.