16.20 - Example: Using ISSCHEMAVALID to Check an XML Instance for Validity Against an XML Schema - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ XML Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1140-162K
Language
English (United States)
SELECT customerID, customerXML.ISSCHEMAVALID(schematab.schemacontent, 'Customer', '')
FROM customer, schematab
WHERE schematab.schemaid = 'customerschema.xsd';

Query result:

customerID   customerXML.ISSCHEMAVALID(schemaContent, 'Customer', '')
----------   --------------------------------------------------------
         1                                                          1