DB2 Version 9.7 for Linux, UNIX, and Windows

XML decomposition annotations - Summary

DB2® supports a set of annotations used by the annotated XML schema decomposition process to map elements and attributes from an XML document to target database tables. The following summary of some of the XML decomposition annotations is grouped by the tasks and actions you use the annotations to perform.

For more information about a specific annotation, refer to the detailed documentation about it.
Table 1. Specifying the SQL schema
Action XML decomposition annotation
Specify the default SQL schema for all tables that do not specify their SQL schema db2-xdb:defaultSQLSchema
Specify an SQL schema different from the default for a specific table db2-xdb:table (<db2-xdb:SQLSchema> child element)
Table 2. Mapping XML elements or attributes to target base tables
Action XML decomposition annotation
Map a single element or attribute to single column and table pair db2-xdb:rowSet with db2-xdb:column as attribute annotations or db2-xdb:rowSetMapping
Map a single element or attribute to one or more distinct column and table pairs db2-xdb:rowSetMapping
Map multiple elements or attributes to single column and table pair db2-xdb:table
Specify ordering dependencies between target tables db2-xdb:rowSetOperationOrder, db2-xdb:rowSet, db2-xdb:order
Table 3. Specifying the XML data to be decomposed
Action XML decomposition annotation
Specify the type of content to be inserted for an element of complex type (text, string, or markup) db2-xdb:contentHandling
Specify any content transformation to be applied before insertion

db2-xdb:normalization, db2-xdb:expression,
db2-xdb:truncate

Filter the data to be decomposed based on the item's content or the context in which it appears

db2-xdb:condition db2-xdb:locationPath