Importing XML

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 Paradigm can 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.xml

    Below 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
    Parameters for ImportXML
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.

 

Related Resources

The following resources may help you to learn more about the topic discussed in this page.

 
1. Exporting XML Table of Contents Chapter 2. Export and import VP project

We use cookies to offer you a better experience. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.OK