Exporting and import XML

You can export project data to an XML, manipulate it externally and feed the changes back to Visual Paradigm. In this chapter, you will see how to export and import XML file through the command line interface.

Exporting XML

To export XML and images from 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 ExportXML 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:
    ExportXML -project C:\Demo\Demo.vpp -out C:\Demo\Output

    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -out Folder for storing the exported XML and images
    C:\Demo\Output
    -diagram One or more diagrams to be exported "Diagram A" "Diagram B"
    -noimage Do not export image files for diagrams N/A
    -refmodel Whether to embed referenced projects' content inline true
    Parameters for ExportXML

Importing XML

To import XML to a project through command line:

  1. Browse the scripts folder under the Visual Paradigm installation directory.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

Related Resources

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

 
2. Exporting and importing XMI Table of Contents 4. Exporting and importing Excel
 

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.