Chapter 27. Export and Import

  1. Home
  2. Docs
  3. Chapter 27. Export and Import
  4. 4. Importing
  5. Importing XML into Visual Paradigm

Importing XML into Visual Paradigm

Download PDF

You can import changes made externally in XML back to Visual Paradigm, to update the project data. In this chapter, you will see how to import an XML exported before. Notice that XML import is made in response to XML export in Visual Paradigm. Only XML exported from Visual Paradigmcan be imported.

Importing XML to current project

  1. Select Project > Import > XML… from the toolbar. This displays the Import XML window.
  2. Specify the file path of the XMI to import and configure the import if necessary.
  3. Click OK.Note: All changes made in project will be overwritten by data in XML. For example, if class Foo is renamed to Bar. By importing an XMI exported before renaming class, Bar will be renamed to Foo.

Importing XML to project with command line interface

To import XML to a project through command line:

  1. Browse the scripts folder under the Visual Paradigm installation directory. For Mac users, you can find the scripts folder in the Visual Paradigm package by right clicking on it and then selecting Show Package Contents. Then look in Contents\Resources\app\scripts for the scripts folder.
  2. Copy the script file ImportXML and paste to the bin folder of Visual Paradigm installation directory.
  3. Start the command prompt.
  4. Navigate to the bin folder of Visual Paradigm installation directory.
  5. Execute the script by supplying the required parameters. For example:
    ImportXML -project C:\Demo\Demo.vpp -file C:\Demo\input\project.xmlBelow is a description of parameters:

    Parameter Description Example
    -project Project path C:\Demo\Demo.vpp
    -file The filepath of the XML file to import C:\Demo\input\sample.xml

    Note: All changes made in project will be overwritten by data in XML. For example, if class Foo is renamed to Bar. By importing an XML exported before renaming class, Bar will be renamed to Foo.