---
title: "XMLTemplateParserUnit"
slug: "xml-template-parser-unit"
updated: 2026-08-18T09:45:32Z
published: 2026-08-18T09:45:32Z
canonical: "docs.lobstersoftware.com/xml-template-parser-unit"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.
# XMLTemplateParserUnit
| **Class name** | com.ebd.hub.datawizard.iu.XMLTemplateParserUnit |
| --- | --- |
**Deprecated.** Please use the [XMLNoTemplateUnit](/v1/docs/en/xml-no-template-unit) 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 *.* *false* if empty values should be written as **. |
| 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" (see [Target structure menu](/v1/docs/en/phase-3-target-structure-menu)) in the target structure menu. After every modification of the target structure, the XML template file has to be generated again.
XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data.
Structured representation of the input data in Phase 3. The target tree receives the values transferred via mapping and passes them on to Phase 4, Phase 5, or Phase 6.
The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel.
Responses: The profile stores the source data or sends it, for example, via FTP, HTTP, or e-mail.
A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required.