Converting single line with comma separated data to xml

Four Stars

Converting single line with comma separated data to xml

Hi all,

 

I want to build the following job :

- Process an incoming flow (String) with a unique line containing "Code1;Code2;Code3;...;CodeN"

- Build an XML file looking like that :

<codes>

 <code>Code1</code>

 <code>Code2</code>

 <code>Code3</code>

 ...

 <code>CodeN</code>

<codes>

 

I've been trying for hours using components like tPivotColumnDelimited, tSplitRow, tFlowToIterate unsuccessfully.

 

Many thanks for your help.

 

Best Regards


Accepted Solutions
Fifteen Stars TRF
Fifteen Stars

Re: Converting single line with comma separated data to xml

Hi,

Have look to tNormalize then tXmlMap components.

TRF

All Replies
Fifteen Stars TRF
Fifteen Stars

Re: Converting single line with comma separated data to xml

Hi,

Have look to tNormalize then tXmlMap components.

TRF
Four Stars

Re: Converting single line with comma separated data to xml

Hi,

 

Sorry for my late answer. I've just tried with these 2 components and it works very well, thank you !

 

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read