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:
- 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.
- Copy the script file ExportXML and paste to the bin folder of Visual Paradigm installation directory.
- Start the command prompt.
- Navigate to the bin folder of Visual Paradigm installation directory.
- 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:
- 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.
- Copy the script file ImportXML and paste to the bin folder of Visual Paradigm installation directory.
- Start the command prompt.
- Navigate to the bin folder of Visual Paradigm installation directory.
- 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 |