Nested composite attributes can be defined inline within a model definition without a separate type definition preceding its usage.
DataModel with ad-hoc composite attribute
<DataModel name="SensorModel"> <String name="SensorID"/> <String name="SensorValue"/> <String name="Unit"/> <Data name="Device"> <String name="Name"/> <String name="Type"/> </Data> </DataModel>