XML generatiion: create dynamic node names

One Star

XML generatiion: create dynamic node names

Hello,

I'm trying to generate an XML file, using the JCR format, from a database. So far it works pretty good, I just have a tMySqlInput connect to a tAdvancedFileOutputXML. My file is correctly generated from the random articles selected in the databse.

The main issue now is that for each page stored in JCR format, you need to have a unique node name. So I need to create with a loop the same node structure, with a different name. Is there a way to do that? I'm new to Talend and I didn't find anything in the documentation.

I'm using Version: 4.2.0M4 on Linux.

Thank you!
One Star

Re: XML generatiion: create dynamic node names

I forgot the screenshots, I don't think I was super clear :-)
Community Manager

Re: XML generatiion: create dynamic node names

Hi
Where's your screenshots? What are you expected result? Please give us an example of output file.

Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: XML generatiion: create dynamic node names

Ah sorry it didn't work apparently...

What I can have now is:

<pages>
<page id="1" >content</page>
<page id="2" >content</page>
<page id="3" >content</page>
<page id="4" >content</page>
</pages>

What I would like to get is:

<pages>
<page1 >content</page1>
<page2 >content</page2>
<page3 >content</page3>
<page4 >content</page4>
</pages>

A unique node name generated with the article ID from my database.

Is it possible to do that?
Community Manager

Re: XML generatiion: create dynamic node names

Hi
You can't set a dynamic node name, it is not supported.

Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog