Export to XMI

Return to Introduction  Previous page  Next page

You can export a package to an XMI (XML based) file. This enables you to move Enterprise Architect Model elements between models, for distributed development, manual version control and other benefits. It also enables limited export of Enterprise Architect model elements to Rational Rose and other tools that implement the UML 2.1 XMI 2.1 standard, the UML1.4 XMI 1.2 standard, or the UML 1.3 XMI 1.1 / XMI 1.0 standard.

For more information regarding the limitations of XMI exporting read the Limitations of XMI topic.

Exporting a Package to XMI

To export a package to XMI, follow the steps below:

1.In the Project Browser window, select the package to export.
2.Either:
·Right-click and select the Import/Export | Export Package to XMI menu option, or
·Select the Project | Import/Export | Export Package to XMI menu option.

The Export Package to XMI dialog displays.
 
MOF_XMIDialog
 

3.In the Filename field, type the directory path and filename into which to output the XMI file.
4.In the Stylesheet field, click on the drop-down arrow and select a stylesheet to post-process XMI content before saving to the file.
5.Select the Export Diagrams checkbox to export diagrams in the file.
6.Select the Export Alternate Images checkbox to export the alternative images used in the diagrams.

Note: This checkbox is enabled only for XMI 1.1 and XMI 2.1.

7.Select the Format XMI Output checkbox to format output into readable XML (this takes a few more seconds at the end of the run).
8.Select the Write Log file checkbox to write a log of export activity (recommended); the log file is saved to the directory into which you export the XMI file.
9.Select the Use DTD checkbox to use the UML1.3 DTD (recommended). Setting this option validates the correctness of the model and checks that no syntactical errors have occurred. For more information regarding the use of DTDs, see the UML DTD topic.
10.In the XMI Type: field, click on the drop-down arrow and select the appropriate XMI format:
·XMI 1.0, to generate output in XMI 1.0 format.
·XMI 1.1, to generate output in XMI 1.1 format.
·XMI 1.2, to generate output in XMI 1.2 format.
·XMI 2.1, to generate output in XMI 2.1 format.
10.Select the Unisys/Rose Format checkbox to export in Rose UML 1.3, XMI 1.1 format.
11.Select the  Exclude EA Tagged Values checkbox to exclude Enterprise Architect-specific information from the export to other tools.
12.Click on the Export button.

Important: When exporting and importing with XMI 1.0 with Enterprise Architect, some loss of data occurs due to the limitations of XMI 1.0.

Note: XMI 2.1 exported by Enterprise Architect 7.0 might not be correctly imported into earlier versions of Enterprise Architect.

Note: When you select to apply a Data Type Definition (DTD) during an XMI 1.1 export, the UML_EA.DTD file is written to the output directory into which the XML files are written (unless the UML_EA.DTD file is already present in the directory). No error is generated if the UML_EA.DTD file is not present in this directory during the XMI export.