XML file connection

With the XML file connection, you can retrieve data from an XML file using XML tags. The tags and output columns are part of the entry definition.

You can pass the XML file as the KEYS argument to the RUNMDL API. The other settings are specified in the connection configuration in KCM Core Administrator.

By default, XML files use UTF-8 encoding.

Usage

To use this connection type, follow these steps:

  1. Open the required DID document and locate a DID module that contains an XML file connection entry.

    A DID can contain multiple XML file connection modules. You can specify different default folders where KCM should start looking for XML files. To do so, use the Directory setting in the connection configuration in KCM Core Administrator.

  2. Set the CONNECTION attribute to XMLFILE.
  3. Set the DATA_RETRIEVAL attribute of an entry to the XML tag that identifies the entry in the XML file.
  4. Set the MODEL_DOC_STATEMENT attribute of the entry to WITH for a single entry to retrieve the first record with a matching tag or FORALL to retrieve all records with a matching tag.

The following data types are currently supported for Fields in this connection type: C_CHAR, W_CHAR, and DOUBLE.