XMLParser Function | Teradata Vantage - XMLParser (ML Engine) - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.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.