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.
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) |
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 |
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
|