XML Import is done in the following steps:

  1. Loading of XML files.
  2. The first parsing of XML data.
  3. Matching of the objects and references with the target configuration:
  4. Reading of the binary files.
  5. The second parsing of XML data.
  6. XML data import.

XML data parsing


Each XML file together with the proper binary files represents the object configuration that is to be imported.

The conditions of successful parsing:

If object or column reference is found while parsing <CFGRECORDS> section (it was not found according to name in prepared references from <REFERENCES> section), it will be added automatically into <REFERENCES> section. It means, the references from <REFERENCES> section are just a sort of some rule that is primary taken into consideration but the import may be done also without <REFERENCES> section.
This action is followed by a check whether all the objects (as individual elements) were changed from XML to the structures in memory. It only involves the check of objects (whether they are correct or not) regardless of their membership in the particular configuration.

Matching of the imported objects with target configuration


The principle of object matching is shown on the flowchart of object matching.

An important element at matching is uuid in TObjItemData structure.
The second important element is Name in TObjItemData structure.

Warnings that may occur at matching:

Errors that may occur at matching:

Matching of the object references with target configuration


The principle of object references matching is shown on the flowchart of object references matching.

The important element at matching is uid in HOBJ_REF structure.
The second important element is name in HOBJ_REF structure.
If the parameter IGNR_REFS is checked, the matching may be executed only through the second element.

Warnings that may occur at matching:

Errors that may occur at matching:

Matching of the column references with target configuration


The principle of column references matching is shown on the flowchart of the column references matching.

The important element at matching is col_idx in COL_REF structure.
The second important element is col_name in COL_REF structure.
If the parameter IGNR_REFS is checked, the matching may be executed only through the second element.

Warnings that may occur at matching:

Errors that may occur at matching:

D2000 XML
XML Import
Object matching - flowchart