Another way to represent repeating items in XSD is by using xsd:list. This is a simple type in XSD that refers to a space-separated list of repeating items. When the list is converted to ASN.1, it is modeled as a SEQUENCE OF type.
For example:
<xsd:simpleType name="MyType"> <xsd:list itemType="xsd:int"/> </xsd:simpleType>
results in the generation of the following C type:
typedef struct EXTERN MyType { OSUINT32 n; OSINT32 *elem; } MyType;
Special code is added to the generated XML encode and decode function to ensure the data is encoded in spaceseparated list form instead of as XML elements.