Develop > Application Configuration > Manage XML configuration files > Non-DTD XML configuration templates

Non-DTD XML configuration templates

You can create a non-DTD based XML configuration template written as a single XML comment with three pieces of required information that enables the template to extract and store values from a target XML file:

  • ACM-NAMESPACE: Defines the location where values read from the target XML file on the managed server will be stored in the database. The name space must be unique and the path must start with a forward slash (/).
  • ACM-FILENAME-DEFAULT: Defines the default absolute path of the target XML configuration file on the managed server.
  • ACM-FILENAME-KEY: Defines the location in the name space where the target XML configuration file name will be stored.

When you set a configuration template’s properties to use XML syntax, the labels displayed in the value set editor are the same as the tag names for the each corresponding element inside the XML file.

For a full list of template settings for XML templates, see XML configuration template settings.

For information on setting the parser syntax to XML for a configuration template, see test text .

Non-DTD XML configuration template for mysql.xml

The following example shows the XML configuration template based on the mysql.xml file. The template file is named to mysql.tpl to indicate it is a template file.

<!--
ACM-NAMESPACE = /TravelManager/
ACM-FILENAME-KEY = /files/TravelManager
ACM-FILENAME-DEFAULT = /var/www/html/we/mysql.xml
ACM-TIMEOUT = 1
-->

This example shows that the XML configuration template references the target XML file
(/var/www/html/we/mysql.xml), so it can be parsed by the application configuration parser, and its values read and stored in the SA Library.

The mysql.tpl configuration template contains the following required information:

  • ACM-NAMESPACE: Defines the location where values read from the mysql.xml file on the managed server will be stored in the database. The name space must be unique and the path must start with a forward slash (/).
  • ACM-FILENAME-DEFAULT: Defines the default absolute path of the mysql.xml file on the managed server.
  • ACM-FILENAME-KEY: Defines the location in name space where the mysql.xml file name will stored.
  • ACM-TIMEOUT: (Optional) Represents the number of minutes that are added to the configuration template’s default timeout value of ten minutes during a push.

The default timeout value for an entire application configuration is ten minutes plus the timeout for each configuration template inside the application configuration. So if this template were the only template inside an application configuration (which has a ten minute timeout), and this value is set to 1, the overall timeout value for the entire application configuration when pushed would be eleven minutes.