2.2.6.5.2 Collection of Complex Type Instances

A collection of ComplexType instances is represented in XML as a single XML document with the root element of the document equal to the same name of the service operation returning the ComplexType instances. The root element and all its child elements MUST exist in the Data Service Metadata namespace, as specified in Common Serialization Rules for XML-based Formats (section 2.2.6.1).

Each ComplexType instance in the collection is represented as a child element of the root element and named "element". An attribute named "type" (in the Data Service Metadata namespace, as described in Common Serialization Rules for XML-based Formats (section 2.2.6.1), MUST exist on the element. The value of this attribute specifies the namespace qualified type name of the ComplexType.

Each property of the ComplexType instance is represented in the same way as in the XML serialization of a single ComplexType, as described in Complex Type (section 2.2.6.2.3).