You can import and export setting files to and from XML
format using the following commands:
|
|
Certain attributes in certain settings files, when
exported to XML format, cannot be converted to text. The setting files
concerned are:
This renders these settings files unusable after exporting them to XML format. |
|
On Windows |
|
1. Change to the default folder in which you
installed the product. On Windows, the default folder is:
2. Enter the command:
or:
with the appropriate arguments. |
|
On UNIX |
|
1. Log on as root or end user. | |
2. Enter the command:
or:
with the appropriate arguments. |
|
Exporting an XML Set from a Settings FileThe CATBatGenXMLSet command reads any setting file and to generate an XML file from it. The syntax is:
The arguments are:
Batch OutputThe name of the resulting file is SettingName.xml. Example
Example of outputLet's say we have a settings file named Example.CATSettings comprising the following attributes:
The resulting XML file will be as follows:
Note that a size of 0 means that the attribute has not been explicitly modified anywhere in the concatenation. Its value is also the default value of the code. |
|
Importing an XML Set to a Setting FileThe CATBatImpXMLSet command reads an XML settings set and generates the settings in the current V5 environment from it.
The arguments are:
Batch OutputThe output is a settings file in the user settings repository of the current V5 environment, for example Statistics.CATSettings. Example
|
|
General RemarksAfter either exporting or importing settings files, a message like this appears confirming the operation has succeeded:
depending on the case, where "xxx" is the settings file name and "yyy" is the number of attributes. If the exported file is already present, the previous file will be overwritten. Certain settings files may be empty. If you attempt to export an empty settings file, the following message is displayed:
where "xxx" is the settings file name, but the resulting XML file is still generated. |
|
We recommend that you do not edit the XML files manually,
since the syntactical coherence of setting files is guaranteed by the
interactive Tools > Options... command.
We advise that you use this export/import facility simply as a means of capturing the state of your configuration settings at a specific point in time, for the purpose of restoring the same settings for another configuration. |
|
|