Back

Topic

[KB632]How to import an XML configuration file

Tags: SG, Smart Generator

13 years ago
By LM
Options
Print
Applies to:

PcVue version 10.0 onwards.


Summary:

The XML import provides a standard (vendor-independent) way of supplying configuration data to PcVue. The structure of the XML file and a list of the supported configuration objects are available in the pdf document, located in the “\Development Kits\Import Toolkit” folder of the Supervisor. This article explains how to import xml files dynamically into PcVue, using XmlImporter utility.


Details:

Extract from PcVue 15.2 online help

You can run a generic XML import from a command line as follows.

  • Enter a command, set up a shortcut or use a script to run the executable file XmlImporter.exe found in the BIN folder of PcVue.

The file XmlImporter.exe must not be moved from that folder.

The XmlImporter command line tool is supported on both 32 (x86) and 64 bit (x64) operating systems.

The syntax is as follows.

XmlImporter.exe file1 [file2 [file3…]] [-synchro:fast|full] [-login:xxx -password:xxx]

  • fileX – The name of an XML configuration file to be imported or the name of a file that contains a list of XML configuration files to be imported.
  • -synchro:fast – Fast synchronization is similar to full synchronization except that ONLY properties that have been changed are updated.
  • -synchro:full – The XML import file is compared to any previous file that was imported and all new elements are created and those that no longer exist are deleted from the project’s configuration.
  • -login – The account name to be used for the import.
  • -password – The password to be used for the account name used for the import.

The filenames are separated by spaces. They must not be separated by any other character (comma for example).

When a file contains a list of other files to be imported, the list is itself XML-formatted as follows.

<Imports>

  <Import>Import1.xml</Import>

  <Import>Import2.xml</Import>

  …

</Imports>


Created on: 28 Feb 2013 Last update: 04 Sep 2024