Exporting XML

Interoperability is the ability to exchange information between two systems and to use the information that has been exchanged. VP-UML supports interoperability with XML file. You can export project data to an XML, manipulate it externally, and feed the changes back to VP-UML. In this chapter, you will see how to export XML file of whole project or specific diagram in project.

Exporting whole project to XML

  1. Select File > Export > XML... from the main menu.
    Export XML
    Export XML
  2. Specify the output destination.
  3. Check Export project to export everything in the project to XML, or keep it unchecked, and check the diagram(s) to export only their content.
  4. Click Export. Upon finishing, you can visit the output destination specified to obtain the XML.

Exporting active diagram to XML

  1. Right click on diagram and select Export > Export XML... from the popup menu.
    Export XML from diagram popup
    Export XML from diagram popup
  2. In the Export to XML dialog box, specify the output destination, which is a folder for containing the exported XML files and optionally the image files of diagrams.
  3. Click Export.

Overview of exporting XML

Overview of Export XML dialog box
Overview of Export XML dialog box
No. Name Description
1 Output destination The location where you want to save the file.
2 Export project By checking Export project, all models in the project will be exported.
3 Export sub-diagrams when export parent

By selecting Export sub-diagrams when export parent, the sub-diagram(s) will also be exported when the parent diagram(s) is exported.

For example, package MyWorks contains diagrams A and B. If you select to export diagram A, its parent "MyWork" will get exported, too. With the option Export sub-diagrams when export parent on, B will get exported too since B is a sub-diagram of package MyWorks. By turning off the option, B will be ignored when export.

4 Diagram list All diagrams in your project will be shown in here.
5 Preview window By checking the selected diagram and Show preview, it will be shown in preview window.
6 Preview mode

You can choose either Stretch or Real size to preview your diagram.

Stretch: The ratio of your diagram will be fit in the size of preview window.

Real size: The ratio of your diagram will be shown on the preview window as its real size.

7 Export Click Export to proceed with exporting to XML.
8 Cancel Click Cancel to discard exporting to XML.
Description of Export XML dialog box

Exporting diagrams to XML with command line interface

  1. Start the command console.
  2. In the console, change directory to the scripts folder and execute ExportXML with parameters required.
    Parameters for ExportXML
    Parameters for ExportXML
    This displays the usage of the command. 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
    Parameters for ExportXML
    Upon finishing, you can visit the output destination specified to obtain the XML files.