17.10 - Example: Verifying XMLTextDoc is a Valid XML Document - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

This example shows how to verify that XMLTextDoc is a valid XML document.

SELECT QueryID,
case XMLTextDoc.isdocument()
    WHEN 1 THEN ‘Yes’
    ELSE ‘No’
    END as “Well-formed”
FROM DBC.QRYLogXMLDocV
ORDER BY QueryID;