<array> : CookXml Common Tag


Create an object array. If type is not specified and all children are of the same object type, then an object array type of child is obtained.

Use the type to specify a primitive type array, or a parent class type of the children.

Examples

The following XML construct an int[] object.

<array type="int">
	<int value="1"/>
	<int value="2"/>
	<int value="3"/>
</array>

The following XML construct an Integer[] object.

<array>
	<int value="1"/>
	<int value="2"/>
	<int value="3"/>
</array>