17.10 - XMLVALIDATE Syntax - 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)
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.