Previous Table of Contents Next


6.7.11 Collections


    A collection value is represented as a bracketed list (see 6.9.7, “Bracketed Pairs/Lists?) with each value of the collection represented exactly once. For ordered collections (Lists and ULists), the elements of the bracketed list are in the same order as the collection. For unordered collections (Sets and Bags), the ordering does not matter.

   [30] MultiValueData := ‘<‘ 31:ValueList ‘>’ | ‘[‘ 31:ValueList ‘]’ | ‘(‘ 31:ValueList ‘)’

   [31] ValueList := (25: DataValue)+ | 25: DataValue (‘,’ 25:DataValue)*

   An alternative representation is to provide a number of attribute name-value pairs, one for each value in the collection.