XMLParser - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.00
1.0
Published
May 2019
Language
English (United States)
Last Update
2019-11-22
dita:mapPath
blj1506016597986.ditamap
dita:ditavalPath
blj1506016597986.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

The XMLParser function takes XML documents and outputs their element names, attribute values, and text in a relational table, which you can search with SQL queries.

XML data is semistructured and hierarchical, unlike the data in relational database tables. Therefore, you cannot search XML data with SQL queries unless you first relationalize the XML data (that is, put it in a relational database table).

Not all XML data can be relationalized; therefore, the XMLParser function constrains the relationships in the extracted data to grandparent/parent/child, parent/child, ancestor, and sibling relationships. The function lets you specify these constraints and the output table schema.