Sources for annotated XML schema decomposition

Annotated XML schema decomposition can be performed on elements or attributes in an XML document, and on the results of the db2-xdb:contentHandling or db2-xdb:expression annotations.

Annotated XML schema decomposition supports decomposition of the following types of content:

  • The value of an attribute or element in the XML document.
  • The value of an element in the XML document, where the exact content depends on the value of the <db2-xdb:contentHandling> annotation. <db2-xdb:contentHandling> values are:
    text
    Character data from the element, but not from its descendants
    stringValue
    Character data from the element and its descendants
    serializedSubtree
    Markup of all content between the element's start tag and end tag
  • Values that are generated through the db2-xdb:expression annotation:
    • A value that is based on the content of a mapped attribute or element in the XML document.
    • A generated value that is independent of any values in the XML document.
    • A constant.
    An expression that is specified through the db2-xdb:expression is invoked once for every element or attribute with which it is associated.