Structure of XML Files - Teradata Meta Data Services

Teradata Meta Data Services Programmer Guide

Product
Teradata Meta Data Services
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
Product Category
Teradata Tools and Utilities

Structure of XML Files

The DTD/XSD files that define the grammar for MDS are named metaxml21.dtd and metaxml21xsd, respectively, they reside in the <MDS Installation Directory>\bin folder. The DTD file also defines aliases for ODBC data types (SQL_VARCHAR, and so on), and variant types (VT_I2, and so on) needed to create/define repository AIM components.

XML scripts must be in separate files. These scripts will specify the MDS DTD or XSD as the grammar for the document and optionally will import user-defined aliases from another file and/or create user-defined aliases in-line.

A sample XML file structure that specifies the DTD as the file metaxml21.dtd in the current folder is shown below. The body of the XML script would be placed between the start and end <METAXML> tags and can consist of any mixture of XML and aliased references conforming to the MDS XML grammar.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE METAXML SYSTEM "metaxml21.dtd">
   
<METAXML version= "6.1">
<!-- Body of XML script: -->
</METAXML>

A sample XML file structure that specifies the XSD as the file metaxml21.xsd in the current folder is shown below. The body of the XML script would be placed between the start and end <METAXML> tags and can consist of any mixture of XML and aliased references conforming to the MDS XML grammar.

<?xml version="1.0" encoding="UTF-8"?>
   
<METAXML version="6.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
              xsi:noNamespaceSchemaLocation="metaxml21.xsd">
<!-- Body of XML script: -->
</METAXML>