IBM DB2 v8.1 (or higher) is a database server with an add-in for XML storage and retrieval called IBM DB2 Extender. XML data (elements, attributes) are mapped to relational data (tables, columns) through Document Access Definition files (.DAD).
There are three types of DAD files:
Storage Type |
Description |
---|---|
Xcolumn |
Column mapping - the Root element is mapped to a table, and its attributes or child elements are mapped to columns identified by an XPath |
Xcollection |
SQL mapping - the DAD file starts with a SQL statement for the table mapped to the Root element, and each child element or attribute is mapped to a column or a table name |
Xcollection |
RDB mapping - a Relational Database node, with a table and a column name, is associated with each attribute or child element of the Root element |
An XML model targeted with DTD allows you to generate DAD files for IBM DB2.