DB2 10.5 for Linux, UNIX, and Windows

Atomization

Atomization is the process of converting a sequence of items into a sequence of atomic values. Atomization is used by expressions whenever a sequence of atomic values is required.

Each item in a sequence is converted to an atomic value by applying the following rules:

Implicit atomization of a sequence produces the same result as invoking the fn:data function explicitly on a sequence.

For example, the following sequence contains a combination of nodes and atomic values:

("Some text",<anElement xsi:type="string">More text</anElement>,
<anotherElement xsi:type="decimal">1.23</anotherElement>,1001)

Applying atomization to this sequence results in the following sequence of atomic values:

("Some text", "More text", 1.23, 1001)

The following XQuery expressions use atomization to convert items into atomic values: