...
Dependencies and conflicts between configuration elements are avoided through the use of an XSD schema.
We have written an XML Editor that will simplify the creation and validation of schema-compatible file transfer configurations.
...
Although longer and seemingly more complex than a comparable configuration using the settings.ini
approach (see The JADE Client Tutorial 1), the XML code for this example was produced using the XML editor Editor and therefore has been validated against the JADE Client XSD Schema. It is therefore conflict free and dependencies are correctly specified.
...
- Settings file configuration
Parameters such as host, protocol, user, password and dir (directory) are usually grouped separately in the settings file configuration according to whether they apply to the transfer depending on their use as source or target.
This This usually has no functional meaning (the files are processed from top to bottom) and is partly simply for convenience (grouping parameters together makes them easier to find) and partly to allow their reuse in the form of so-called profile fragments if required.Status colour Yellow title REwrite - XML configuration
- Parameters are divided up between hierarchical profile Profiles and fragment Fragments branches. (Note that these two expressions are defined differently to elements with the same names in the settings file configuration.)
- authentication and connection parameters (Account & Password and Hostname & Port respectively) and the protocol (defined through the use of FTP) are part of the Fragments branch of the configuration.
- the operation (copyCopy) and the source and target file paths (FilePath and LocalTarget respectively) are specified in the Profiles branch.
- the CopySourceFragmentRef element refers to the FTPFragment specified in the Fragments branch
- The division between Fragments and Profiles branches allows the reuse of elements whilst working within the strict hierarchical structure of XML.
- The use of a reference in the Profiles branch (in the example, using the CopySourceFragmentRef element) to specify the authentication and connection parameters in the Profiles branch allows any number of Profiles elements to be defined and specified as required.
- Parameters are divided up between hierarchical profile Profiles and fragment Fragments branches. (Note that these two expressions are defined differently to elements with the same names in the settings file configuration.)
...
Migrating from Settings File to XML-based Configurations
...