NULL values and empty strings in annotated XML schema decomposition
Annotated XML schema decomposition inserts NULL values or empty strings under certain conditions.
XML elements
The following table shows when an empty string or a NULL value is inserted into the database for elements in the XML document.
Condition | Empty string | NULL value |
---|---|---|
Element missing from document | X | |
Element satisfies all of the following conditions:
|
X | |
Element satisfies all of the following conditions:
|
X | |
Note:
|
XML attributes
The following table shows when an empty string or a NULL value is inserted into the database when XML attributes annotated for decomposition contain NULL values in the document or are missing.
Condition | Empty string | NULL value |
---|---|---|
Attribute missing from document (either because no validation was performed, or there was no default value provided by validation) | X | |
Attribute satisfies all of the following conditions:
|
X | |
Note: If a mapping involves the db2-xdb:condition or db2-xdb:expression annotations,
then the empty string or NULL value (as shown in this table) is passed
as the argument for expression evaluation.
|