Contents > 7 SDMetrics Metamodel and XMI Transformation Files > 7.2 XMI Transformation Files > 7.2.1 XMI Transformation File Format

7.2.1 XMI Transformation File Format

An XMI transformation file is an XML file of the following format (see Appendix E: "Project File Format Definitions" for a formal definition):
<xmitransformations version="2.0" >
  <xmitransformation ...xmitransformation attributes... />
    <trigger ...trigger attributes... />
    <trigger ...trigger attributes... />
    ...
  </xmitransformation>
  <xmitransformation ...xmitransformation attributes... />
   <trigger ...trigger attributes... />
   ...
  </xmitransformation>
  ...
</xmitransformations>
The transformation file defines a list of xmitransformation elements, each of which has a list of triggers. Each xmitransformation element provides XMI information for one SDMetrics metamodel element, each trigger provides XMI information for one attribute of the metamodel element.

The root element xmitransformations encloses the list of XMI transformations. The "version" attribute (required) indicates the version number of the oldest version of SDMetrics with which the XMI transformation file can be used.