XMLTemplateParserUnit

Class name

com.ebd.hub.datawizard.iu.XMLTemplateParserUnit


Deprecated. Please use the XMLNoTemplateUnit for newly developed profiles.

This Integration Unit creates an XML file from the target tree using a template file.

Parameters


Parameter

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.

preserve - No changes will be made to the text. All whitespaces (leading, trailing, …) will remain in the XML file.

trim-full-white - Same as preserve with the exception that a text, containing only whitespaces, will be replaced by an empty text.

trim - All leading and trailing whitespaces of a text will be removed.

normalize - Same as trim with the addition, that 'inner' whitespaces are reduced to a single space (..1..2.. → 1.2, a dot represents a whitespace).

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 (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.