Import XML in Visual Paradigm Desktop

Visual Paradigm Desktop provides an XML import feature that allows users to bring previously exported project data back into Visual Paradigm. It supports a round-trip workflow in which project information can be exported to XML, modified externally, and imported back into a Visual Paradigm project to update its contents.

The Import XML feature is particularly useful for updating project data through external processing, transferring project information between projects, and maintaining model information across different stages of a development workflow. It also provides a command-line option for automating XML imports.

Importantly, Visual Paradigm’s Import XML feature is designed to work with XML files exported from Visual Paradigm. It is not a general-purpose XML parser for importing arbitrary XML documents or automatically converting external XML schemas into UML models.

What Is Import XML in Visual Paradigm?

Import XML is a project interoperability feature in Visual Paradigm Desktop that allows users to import XML files previously exported from Visual Paradigm into an existing project. Its primary purpose is to bring externally modified project data back into Visual Paradigm.

The feature supports a round-trip data exchange workflow:

  1. Export: Export project information from Visual Paradigm into an XML file.
  2. Modify: Edit or process the exported XML data using an external tool, application, or script.
  3. Import: Import the modified XML file back into Visual Paradigm.
  4. Update: Apply the imported information to the project.

Because the XML file represents Visual Paradigm project data, the import process can update existing model information rather than simply treating the XML file as an unrelated document.

Key distinction: Import XML is intended for reimporting Visual Paradigm-exported project data. Users who want to import UML models from other modeling applications should investigate the dedicated XMI import functionality instead.

Why Use Import XML?

Import XML provides a way to work with Visual Paradigm project information outside the modeling environment while retaining the ability to bring changes back into the original project.

Support External Data Modification

Not every project modification needs to be performed manually inside Visual Paradigm. Users can export project information, process or modify the XML externally, and import the updated data back into Visual Paradigm.

This is useful when external scripts, data-processing utilities, or other applications are better suited to performing repetitive or structured modifications.

Facilitate Project Data Exchange

XML provides a structured representation of project information that can be saved and transferred between environments. By exporting and subsequently importing XML, users can move project data into another Visual Paradigm project.

Support Automated Workflows

The command-line Import XML script allows users to perform imports without manually opening the import dialog and selecting a file. This makes the feature suitable for scripted workflows and repeatable project maintenance tasks.

Support Project Migration Scenarios

XML export and import can also be useful when transferring project information between different Visual Paradigm environments or software versions, provided that the exported XML is compatible with the target environment.

Preserve Model Information During External Processing

Unlike manually recreating project elements after external modification, importing the exported XML allows Visual Paradigm to process the project data as part of its existing model structure.

Edition and Availability

The XML import and export functionality is available in the following Visual Paradigm Desktop editions:

  • Enterprise Edition
  • Professional Edition
  • Standard Edition
  • Modeler Edition

Community Edition: Export and import of project XML is not included in the Community Edition according to the Visual Paradigm Desktop edition comparison.

The feature is available as part of Visual Paradigm Desktop’s project import and export capabilities. It does not require a separate XML import add-on.

Import XML Functionality Breakdown

The Import XML feature provides several important capabilities related to project data restoration, external modification, element identification, and automated importing.

Import Visual Paradigm-Exported XML

The primary capability is importing XML files generated by Visual Paradigm’s XML export functionality.

Visual Paradigm uses its own XML representation of project information. Consequently, the XML import function is designed to recognize and process XML files exported from Visual Paradigm rather than arbitrary XML documents.

Typical supported workflow:

  • Export an entire Visual Paradigm project to XML.
  • Export selected diagrams or their associated model information.
  • Modify the exported XML externally.
  • Import the modified XML into a Visual Paradigm project.

When importing, Visual Paradigm processes the XML data and applies it to the currently open project.

Import XML into the Current Project

Users can import an XML file directly into the project currently open in Visual Paradigm Desktop.

The import operation is initiated through the Project menu:

Project > Import > XML…

After selecting the XML file and configuring the available import settings, users can execute the import to update the project.

The target project is the currently open project. Users should therefore verify that they have opened the intended project before starting the import.

Specify the XML File Path

The Import XML dialog allows users to specify the location of the XML file to import.

The file path identifies the XML data that Visual Paradigm should process. Users should select the XML file previously exported from Visual Paradigm, or a compatible copy that has been modified externally.

Before proceeding, verify that:

  • The selected file exists and is accessible.
  • The selected file is an XML file exported from Visual Paradigm.
  • The file contains the intended project information.
  • The XML file has not been damaged by external editing or processing.

Match Existing Model Elements by Internal ID

Visual Paradigm uses internal identifiers to identify model elements across project data. The XML import workflow supports matching elements by their internal IDs.

The matching behavior is important because an imported model element may correspond to an element that already exists in the target project.

Matching by internal ID allows Visual Paradigm to recognize corresponding elements rather than relying solely on their names. This is particularly important when model elements have been renamed or when multiple elements have similar names.

The default matching mode is identified as By Internal ID (default) in the Import XML interface.

Generate New IDs for Elements Not Found in the Current Project

The Import XML interface provides an option named Generate new ID for elements not found in current project.

When enabled, Visual Paradigm generates new internal IDs for imported elements that cannot be found in the current project.

This option is particularly useful when importing project information into a different project or when creating an independent copy of existing project content.

Generating new IDs helps ensure that newly imported elements have unique identifiers within the target project.

When should this option be enabled?

  • When importing project data into a different project and new elements need independent identities.
  • When creating a separate project based on an exported copy of another project.
  • When avoiding unintended reuse of element identifiers across projects.

For workflows that depend on maintaining the identity of existing model elements, consider the consequences of generating new IDs before enabling this option.

Update Existing Project Data

Import XML is designed to update project information using the contents of the imported XML file.

This means that information currently present in the project can be changed when the imported XML contains different values.

For example:

  • A class currently named Bar may be renamed to Foo if the imported XML contains the earlier class information.
  • Changes made externally to exported project data can be brought back into Visual Paradigm.
  • Existing model information can be updated according to the imported XML representation.

Important: Import XML is not simply an append-only operation. Existing project changes can be overwritten by the information contained in the imported XML. Users should not assume that importing XML will preserve every modification made after the XML was exported.

Import XML Through the Command Line

Visual Paradigm also provides a command-line script named ImportXML for importing XML into a project.

This capability is useful for automation, scheduled operations, and repeatable project maintenance workflows.

The command-line import accepts two primary parameters:

Parameter Description Example
-project Specifies the path of the target Visual Paradigm project file. C:\Demo\Demo.vpp
-file Specifies the path of the XML file to import. C:\Demo\input\project.xml

Example command:

ImportXML -project C:\Demo\Demo.vpp -file C:\Demo\input\project.xml

The command identifies the target project and the XML file to import. It allows users to execute the import without manually navigating through the application’s graphical interface.

How to Import XML into Visual Paradigm Desktop

Follow these steps to import an XML file into an existing Visual Paradigm Desktop project.

Step 1: Open the Target Project

Start Visual Paradigm Desktop and open the project into which you want to import XML data.

Verify that the correct project is open before proceeding. Importing XML can overwrite existing project information, so selecting the intended target project is important.

Step 2: Open the Import XML Command

From the application toolbar, select:

Project > Import > XML…

Visual Paradigm opens the Import XML dialog.

Step 3: Specify the XML File

In the Import XML dialog, specify the file path of the XML file you want to import.

Choose the XML file that was previously exported from Visual Paradigm. If the file was modified externally, ensure that the modifications have preserved the XML structure and information required by Visual Paradigm.

Step 4: Configure the Import Options

Review the available import settings before proceeding.

In particular, consider the element matching behavior and whether to enable Generate new ID for elements not found in current project.

Choose the appropriate settings based on whether you are updating an existing project or importing information into a separate project.

Step 5: Execute the Import

After specifying the XML file and configuring the import, click OK to proceed.

Visual Paradigm processes the XML and applies the imported information to the current project.

Step 6: Review the Imported Project Data

After the import is completed, inspect the project to verify that the expected information has been applied.

Depending on the content of the XML file, review the relevant model elements, diagrams, names, relationships, and other project information.

Save the project after confirming that the imported data is correct.

How to Import XML Using the Command Line

For users who want to automate XML imports, Visual Paradigm provides the ImportXML command-line script.

This approach is particularly useful when XML imports need to be performed repeatedly or incorporated into external automation scripts.

Step 1: Locate the ImportXML Script

Browse to the scripts folder under your Visual Paradigm installation directory.

On macOS, the scripts folder can be located inside the Visual Paradigm application package. Right-click the application and select Show Package Contents, then navigate to:

Contents/Resources/app/scripts

Step 2: Copy the Script to the Installation Bin Folder

Copy the ImportXML script from the scripts folder and place it in the bin folder of your Visual Paradigm installation directory.

Step 3: Open a Command Prompt or Terminal

Start a command-line environment on your operating system.

Navigate to the bin folder of your Visual Paradigm installation directory.

Step 4: Execute the Import Command

Run the ImportXML script and provide the required project and XML file paths.

For example:

ImportXML -project C:\Demo\Demo.vpp -file C:\Demo\input\project.xml

In this example:

  • -project C:\Demo\Demo.vpp identifies the Visual Paradigm project to update.
  • -file C:\Demo\input\project.xml identifies the XML file to import.

Replace these example paths with the actual locations of your project and XML file.

Step 5: Verify the Target Project

After the command has been executed, inspect the target project in Visual Paradigm Desktop to verify the imported information.

As with importing through the graphical interface, command-line importing can overwrite existing project information with the contents of the XML file.

Practical Import XML Workflows

The following examples illustrate how Import XML can be incorporated into common Visual Paradigm project workflows.

Workflow: Modify Project Data Externally and Import It Back

This workflow is useful when project information needs to be modified using external tools or scripts.

  1. Open the source project in Visual Paradigm Desktop.
  2. Export the project data to XML using the XML export functionality.
  3. Open the exported XML file using an appropriate external tool.
  4. Make the required changes while preserving the XML structure and identifiers.
  5. Save the modified XML file.
  6. Return to Visual Paradigm Desktop.
  7. Open the target project and select Project > Import > XML….
  8. Select the modified XML file and configure the import settings.
  9. Click OK to import the changes.
  10. Review and save the updated project.

This workflow allows external processing to participate in the project maintenance process without requiring all modifications to be performed manually in Visual Paradigm.

Workflow: Create an Independent Project from an Existing Project

XML export and import can be used when creating an independent project based on the contents of an existing Visual Paradigm project.

  1. Open the source project.
  2. Select Project > Export > XML….
  3. Choose the option to export the entire project and specify the output destination.
  4. Export the project data.
  5. Create a new Visual Paradigm project.
  6. Select Project > Import > XML….
  7. Select the XML file exported from the original project.
  8. Enable Generate new ID for elements not found in current project when independent identifiers are required.
  9. Complete the import.
  10. Save the resulting project under a new project file name.

This approach can be useful when creating an independent copy of a project, particularly in scenarios where projects originating from the same source need to be treated as separate projects.

Generating new IDs is especially relevant when avoiding internal project identity conflicts, such as when establishing project references between independently maintained projects.

Workflow: Automate XML Imports for Repeated Updates

When the same XML import operation needs to be performed regularly, the command-line ImportXML script can be incorporated into an external automation process.

  1. Prepare the target Visual Paradigm project.
  2. Generate or obtain the XML file to import.
  3. Prepare a command that specifies the project path and XML file path.
  4. Execute the ImportXML script through the command line.
  5. Verify the updated project.

This approach reduces the need for repetitive manual interaction and makes XML importing suitable for scripted project maintenance workflows.

Important Considerations and Limitations

Although Import XML provides a convenient way to update project data, users should understand its behavior before importing files into important projects.

Only Visual Paradigm-Exported XML Is Supported

The Import XML feature is designed for XML files exported from Visual Paradigm. It should not be treated as a general-purpose XML import facility.

Arbitrary XML documents, XML configuration files, XML database exports, and unrelated XML schemas are not automatically converted into Visual Paradigm project models through this feature.

Importing Can Overwrite Existing Project Changes

One of the most important considerations is that importing XML can overwrite changes currently present in the project.

For example, suppose a class was originally named Foo. After exporting the project, someone renames the class to Bar in Visual Paradigm. If the earlier XML file is subsequently imported, the class can be renamed back to Foo.

This happens because the imported XML contains the earlier project information.

Therefore, users should not assume that Import XML performs a selective merge that preserves all newer project modifications.

Back Up Important Projects Before Importing

Before importing XML into an important project, save a backup or create a separate working copy of the project.

This provides a recovery point if the imported XML contains outdated information or produces an unexpected result.

Preserve Internal IDs When Editing XML

Internal IDs are important for matching model elements between the XML file and the current project.

When modifying exported XML externally, avoid changing or removing internal identifiers unless the intended workflow specifically requires it.

Unintended identifier changes can affect how Visual Paradigm recognizes existing elements during import.

Use New IDs Carefully

The option to generate new IDs for elements not found in the current project is intended to help establish unique identities for newly imported elements.

However, generating new IDs does not mean that all existing model elements will automatically receive new identifiers. The option specifically concerns elements that are not found in the current project.

Consider the identity requirements of the target project before enabling this option.

Import XML Is Different from Import XMI

Visual Paradigm provides separate XML and XMI import functions.

Although both formats are XML-based, they serve different interoperability purposes.

  • Import XML: Imports XML project data previously exported from Visual Paradigm.
  • Import XMI: Supports importing model information represented in XMI, including compatible UML models exported from other modeling applications.

If the objective is to migrate a UML model from another modeling tool, Import XMI is generally the more appropriate feature to investigate.

Import XML Is Different from XML Reverse Engineering

Import XML should also not be confused with Visual Paradigm’s Instant Code Reverse: XML feature.

Instant Code Reverse: XML is intended to reverse-engineer XML data into UML class models. Import XML, on the other hand, restores or updates Visual Paradigm project information from previously exported XML.

These functions have different purposes and should be selected according to the source data and desired result.

Import XML Does Not Automatically Validate Arbitrary XML Schemas

Import XML is not an XML Schema validation or XSD reverse-engineering tool. It is intended to process Visual Paradigm’s exported project representation.

Users who want to reverse-engineer XML Schema definitions into UML models should use the dedicated XML Schema reverse-engineering functionality instead.

Import XML vs. Other Visual Paradigm Import Features

Visual Paradigm Desktop supports multiple import mechanisms. Understanding their differences helps users select the appropriate workflow.

Feature Purpose Typical Input
Import XML Import previously exported Visual Paradigm project data and apply externally modified information. Visual Paradigm-exported XML
Import XMI Import model information using the XMI interoperability format. Compatible XMI files
Instant Code Reverse: XML Reverse-engineer XML data into UML class models. XML files
Instant Code Reverse: XML Schema Reverse-engineer XML Schema definitions into UML class models. XSD files
Import Visual Paradigm Project Import project information from another Visual Paradigm project file. VPP files

Which Import Feature Should You Use?

  • Use Import XML when you have XML exported from Visual Paradigm and want to bring the project information back into Visual Paradigm.
  • Use Import XMI when you want to migrate compatible UML model information from another modeling application.
  • Use Instant Code Reverse: XML when you want to generate UML class models from XML data structures.
  • Use Instant Code Reverse: XML Schema when you want to generate UML class models from XSD definitions.
  • Use Import Visual Paradigm Project when your source is another Visual Paradigm project file.

Frequently Asked Questions About Import XML

What does Import XML do in Visual Paradigm?

Import XML allows users to import XML files previously exported from Visual Paradigm into an existing project. It is primarily used to bring externally modified project data back into Visual Paradigm.

Can I import any XML file into Visual Paradigm using Import XML?

No. The Import XML feature is designed to process XML files exported from Visual Paradigm. It does not function as a general-purpose XML parser for arbitrary XML documents.

Where can I find Import XML in Visual Paradigm Desktop?

Select Project > Import > XML… from the application toolbar. This opens the Import XML dialog.

Does Import XML update an existing project?

Yes. Import XML applies the information contained in the imported XML to the currently open project. Existing project information can be overwritten by the imported data.

Does Import XML append data to my project?

Import XML should not be treated as an append-only operation. The imported XML can update existing project information and overwrite changes made after the XML was exported.

Will importing an older XML file undo my newer project changes?

It can. For example, if a class was renamed after XML export, importing the older XML may restore its previous name. Users should back up important projects before importing older XML files.

What is the default matching method for XML import?

The Import XML interface identifies the default matching method as By Internal ID (default). Internal identifiers help Visual Paradigm recognize corresponding model elements during import.

What does Generate new ID for elements not found in current project do?

This option generates new internal IDs for imported elements that cannot be found in the current project. It is useful when importing project information into another project or creating an independent project copy.

Should I enable Generate new ID when importing XML?

Enable it when newly imported elements should receive independent internal identifiers, such as when creating a separate project based on an existing project. Consider the project’s identity and reference requirements before enabling it.

Can I import XML into a new Visual Paradigm project?

Yes. Create a new project, select Project > Import > XML…, and select the XML file exported from Visual Paradigm. You can enable the new ID option when independent element identities are required.

Can I modify the XML file before importing it?

Yes. A key purpose of XML export and import is to allow project data to be modified externally before being imported back into Visual Paradigm. However, external modifications should preserve the required XML structure and internal identifiers.

Can I import XML using a command-line interface?

Yes. Visual Paradigm provides an ImportXML script that accepts the -project and -file parameters to specify the target project and XML file.

What is the command to import XML through the command line?

Use the following command after preparing the ImportXML script in the Visual Paradigm installation’s bin directory:

ImportXML -project C:\Demo\Demo.vpp -file C:\Demo\input\project.xml

Can I use Import XML to import UML models from another modeling application?

Import XML is not intended for this purpose. For compatible UML model interchange, use Visual Paradigm’s dedicated Import XMI functionality.

What is the difference between Import XML and Import XMI?

Import XML processes Visual Paradigm-exported project data, while Import XMI imports model information represented in the XMI interchange format. The two features serve different interoperability workflows.

What is the difference between Import XML and Instant Code Reverse: XML?

Import XML restores or updates Visual Paradigm project information from exported XML. Instant Code Reverse: XML analyzes XML data structures and generates UML class models. The former is a project data import feature; the latter is a reverse-engineering feature.

Can Import XML import XSD files?

No. XML Schema files are intended for XML Schema reverse-engineering workflows, not the standard Import XML project-data workflow.

Which Visual Paradigm editions support Import XML?

Import XML is supported in Enterprise, Professional, Standard, and Modeler editions. It is not included in Community Edition.

Does Import XML require a separate add-on?

No. It is a built-in Visual Paradigm Desktop project import and export capability in the supported editions.

What should I do if importing XML produces unexpected changes?

First, verify that the correct project and XML file were selected. Check whether the XML file contains older project information and whether external modifications affected internal identifiers. If necessary, restore the project from a backup and repeat the import with the appropriate settings.

Summary

Import XML in Visual Paradigm Desktop provides a structured way to bring previously exported project information back into Visual Paradigm. It supports external project data modification, project data exchange, and automated import workflows.

Its main capabilities include importing Visual Paradigm-exported XML, matching model elements using internal identifiers, generating new IDs for elements not found in the current project, and executing imports through a command-line script.

The most important consideration is that XML importing can overwrite existing project information with the contents of the imported file. Users should therefore verify the source XML, understand the ID-generation option, and back up important projects before importing.

By understanding these capabilities and limitations, users can incorporate XML import into their Visual Paradigm project maintenance, data exchange, and automation workflows effectively.

Scroll to Top