17.00 - Example: Verifying XMLTextDoc is a Valid XML Document - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

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;