Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Export to XML

You use the 'Export Package to XML' dialog to export a Package from your model to a file in one of several XMI (XML-based) formats. The dialog, by default, allows exporting to either XMI 1.1, XMI 2.1, or Enterprise Architect's Native XML format. The exported XML file contains all the information required for completely round-tripping the Package within Enterprise Architect; that is, performing Enterprise Architect-to-Enterprise Architect transfers.

Access

Select a Package in the Browser window, then:

Ribbon

Publish > Model Exchange > Export XML > Export XML for Current Package

Keyboard Shortcuts

Ctrl+Alt+E

Export a Package to an XML file

Option

Action

See also

Package

Displays the name of the currently-selected Package.

If this is not the required Package, click on the Browse package button and select the correct Package.

Filename

Type in the file path of the XMI file to be generated, or click on the Browse. button and browse for the location.

Export Type

  • 'XMI 1.1' - Select this option to export the selected Package to XMI 1.1
  • 'XMI 2.1' - Select this option to export the selected Package to XMI 2.1
  • 'Native' - Select this option to export the selected Package to Enterprise Architect's Native XML format
  • 'Publish' - Click on this button to open the 'Publish Model Package' dialog for exporting to other versions of XML
Publish Model Package Native XML File

Generate Merge file using Baseline Version

This option is enabled when:

  • 'Export Type' is set to 'XMI 1.1' and
  • The selected Package has a baseline

Click on the Browse. button to open the 'Baselines' dialog and select the baseline.

Once the export is complete, the merge file will be generated by comparing the selected Package with the selected baseline. The merge file will be generated in the same location as the XMI file, with the same name as the XMI file but with the suffix _Merge.xml.

This file is used to merge the contents of a Package with that of the XMI file, using the 'Merge Package with XMI' dialog.

Manage Baselines Merge Package with XMI Using Merge File

View XML

Click on this button to view the exported XML file.

Export

Click on this button to initiate the XML export.

Close

Click on this button to close this dialog.

Help

Click on this button to display this Help topic.

Progress

Monitor the progress of the XML Export.

Notes

  • In the Corporate, Unified and Ultimate editions of Enterprise Architect, if security is enabled you must have 'Export XML' permission to export to XML
  • Alternative Images used in the Package being exported are not included in the exported XMI file, unless the 'Export Alternate Images' option is selected in the 'XML Specifications' section of the 'Preferences' dialog
  • The Log file for the Package being exported is not generated unless the 'Write Log' option is selected in the 'XML Specifications' section of the 'Preferences' dialog
  • XMI 2.1 exported by Enterprise Architect 7.0 (or later) might not be correctly imported into earlier versions of Enterprise Architect

Learn more