Exporting XMI

Interoperability is the ability to exchange information between two systems and to use the information that has been exchanged. VP-UML supports interoperability with XMI file, a standard made for data exchange. You can export project data to an XMI, edit it externally with other softwares that accepts XMI. In this chapter, you will see how to export XMI file.

Exporting project to XMI

  1. Select File > Export > XMI... from the main menu.
    This displays the Export XMI dialog box.
  2. Specify the file path of the XMI file.
  3. Configure the exporting such as setting the XMI version and changing the encoding of XMI.
  4. Click OK button to start exporting. Upon finishing, you can visit the output destination specified to obtain the XMI.
    Review exported XMI
    Review exported XMI

An overview of Export XMI dialog box

An overview of the Export XMI dialog box
An overview of the Export XMI dialog box
No.Name Description
 1 File path
The file path for the XMI file to export.
 2 XMI version

There are three versions of XMI to suit different interoperability needs, including 1.0, 1.2 and 2.1. If the latest version 2.1 is selected, the following options are then available for selection:

  • Export for UML 2 - By checking this option, the exported XMI will conform to the tool UML2's standard. The following options will appear in further.
    • Export Data Type to - Determine whether to export data type to UML or Ecore primitive type
    • Export Java Annotation to EAnnotation - Determine whether to export Java annotation to EAnnotation
  • Export <<Interface>> to Interface - Determine whether to export stereotype "interface" as  stereotype, or a segment of interface element.
  • Export Interface Realization - Determine whether to keep exporting realization between interface and concrete class as realization, or export it as interface realization.
 3 Encoding
Select the encoding of XMI file.
Description of Export XMI dialog box

Exporting diagrams to XMI with command line interface

  1. Start the command console.
  2. In the console, change directory to the scripts folder and execute ExportXMI with the parameters required.

    Export XMI using command line interface
    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -out The filepath of XMI file C:\Demo\Output\sample.xmi
    -type [optional] Version of XMI. Unless specified, the lastly generated version will be selected. Here are the possible options:
    • 1.0
    • 1.2
    • 2.1
    • 2.1UML2
    2.1
    -encoding [optional] Encoding of XMI file UTF-8
    Parameters for ExportXMI
    Upon finishing, you can visit the output destination specified to obtain the XMI.
 
Chapter 4. Export and Import XMI Table of Contents 2. Importing XMI
 

Product

Try this feature with

Visual Paradigm for UML

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.