XMLVALIDATE Syntax - Teradata Vantage - Analytics Database

XML Data Type

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
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ā„¢
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.