Before starting this section, we recommend reading the previous tMap sections for the basic knowledge of a Talend mapping component.
tXMLMap is fine-tuned to leverage the Document data type for processing XML data, a case of transformation that often mixes hierarchical data (XML) and flat data together. This Document type carries a complete user-specific XML flow. In using tXMLMap, you are able to add as many input or output flows as required into a visual map editor to perform, on these flows, the operations as follows:
data multiplexing and demultiplexing,
data transformation on any type of fields, particularly on the Document type,
data matching via different models, for example, the Unique match mode (related topic: How to use Explicit Join),
Automated XML tree construction on both of the input and the output sides,
inner join and left outer join (related topic: How to use Inner Join)
lookup between data sources whatever they are flat or XML data using models like Load once (related topic: Handling Lookups),
fields concatenation and interchange,
field filtering using constraints,
Like tMap, a map editor is required to configure these operations. To open this map editor, you can double-click the tXMLMap icon in the design workspace, or alternatively, click the three-dot button next to the Map Editor in the Basic settings view of the tXMLMap component.
tXMLMap and tMap use the common approaches to accomplish most of these operations. Therefore, the following sections explain only the particular operations to which tXMLMap is dedicated for processing the hierarchical XML data.
The operations focusing on hierarchical data are:
using the Document type to create the XML tree;
managing the output XML data;
editing the XML tree schema.
The following sections present more relevant details.
Different from tMap, tXMLMap does not provide the Store temp data option for storing temporary data onto the directory of your disk. For further information about this option of tMap, see Solving memory limitation issues in tMap use.