XMLTemplateParserUnit
Group |
|
Function |
Creates an XML file from the target tree using a template file. |
Description
This Integration Unit is deprecated.
Important note: Please use the XMLNoTemplateUnit for newly developed profiles.
Introduction: Integration Units. Set the Content in the Content settings of a Response Route in phase 6 to Output of IU.
The XMLTemplateParserUnit creates an XML file from the target tree using a template file.
Parameter Description
Parameter name |
Allowed values |
Default value |
Description |
Insert this DOCTYPE declaration |
|
|
The DOCTYPE declaration to be added after the generation of the XML. The DOCTYPE cannot be part of the template since the underlying XML generator would abort the generation in that case. |
Replace orig. string by |
|
|
Text to replace the text specified in parameter Search for orig. string after the creation of the XML file. |
Search for orig. string |
|
|
Text to be replaced by the text specified in parameter Replace orig. string by after the creation of the XML file. |
Text mode (…) |
normalize, preserve, trim, trim-full-white |
trim |
Configures the way, values are written into the XML file.
|
Write xml in a single line |
true, false |
false |
If true, the entire XML will be written in a single line. |
expand empty nodes |
true, false |
false |
true if empty values should be written as <tag></tag>. false if empty values should be written as <tag/>. |
file encoding |
|
UTF-8 |
The name of the character set to be written into the header of the XML file. Note: The encoding in the response route (phase 6) of the profile must be set to the same value to actually save the data with this character set. Otherwise parsing errors on the reading side will most likely occur (mandatory). |
template-file |
|
|
The name of the template file to be used. See following section. |
with empty fields |
true, false |
false |
If true, empty fields will remain in the XML file. |
Creation of an XML Template File
To automatically create the template file, simply select Create XML template for IU in the target structure menu. After every modification of the target structure, the XML template file has to be generated again.