Mapping CSV to XML: Group Elements

One Star

Mapping CSV to XML: Group Elements


tFileInputDelimited --> tXMLMap --> TXMLOutput


CSV file structure:

ParticipantID   Gender   Participation

505   Male   Open

506   Female   Closed


Desired XML output for Row 2 of CSV (1 XML file per row):



In Talend Integration, how do I nest?

- "<value>505</value>" within ParticipantID and ID tags

- "<ParticipationType>OPEN</ParticipationType>" within Participation tag


Thanks for your help.

Nine Stars

Re: Mapping CSV to XML: Group Elements

@Astrocyte - I would recommend to use tAdvancedFileOutputXML to make your output in the desired XML format.

Job Layout - 


XML tree configuration - 


What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.



Introduction to Talend Open Studio for Data Integration.


Downloads and Trials

Test drive Talend's enterprise products.