XML template

Read the general information about XML template used in the XML Generator configuration.

The structure of the output file is defined by a template. A template is an XML file that describes in what form the data will be presented, and it contains all nodes with their values that will be in the output.

You can load a template file in the XML Generator Configuration to see its visual representation in a from of a tree. You can change the text context of an element or the value of an attribute by highlighting it in the tree and clicking the Properties button. Any values can be replaced by the available RRTs.
Note: The values of nodes in the original template file can contain the definitions of the available RRTs.

You can define a counter for a node to specify that the node should be repeated in the output XML file. The node will be repeated for each counter value. You can specify a counter and its max and min values by highlighting a node and clicking the Properties button. You can use the counter in values of nodes and attributes. A counter also can be used inside RRTs definition. For example, if you have the following in the nodes in the template

	<ChildNode id="ID">Data</ChildNode>

Specify a counter for the ChildNode Node and set its values to be in the range from 1 to 5. Set the counter for the value of the id attribute. The result will be as follows

	<ChildNode id="1">Data</ChildNode>
	<ChildNode id="2">Data</ChildNode>
	<ChildNode id="3">Data</ChildNode>
	<ChildNode id="4">Data</ChildNode>
	<ChildNode id="5">Data</ChildNode>
Note: After the user enters the values and clicks OK, the component will change the values in the configuration file for this process, it will not change the template file itself.