Appending elements to arrays
To append new items to an array, you use the Append operation in the Data Association editor. The target should be the array itself, as opposed to the last element in the array.
The source can be XML Literal, the output of an XPath function that returns an object of the correct type, or a data object (variable) of the correct type.
This technique can be used regardless of whether the target array is empty or not.
We have already used this technique in the practice exercise for Creating an initialized array earlier in this chapter.