GENERATE XML FILE

Seven Stars

GENERATE XML FILE

Morning All,

I generate an xml file which look good.

But i have just one problem, i don't want XML coder and character encoding appear in my output.

 

My job looks like bellow
pic1.png

 

 

 

And i get result bellow where i want to remove all : <?xml version="1.0" encoding="ISO-8859-15"?>

 

pic2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

May somebody suggest me a solution 

 

Thanks,


Accepted Solutions
Seven Stars

Re: GENERATE XML FILE

Hi,

I jind another way to solve this problem, i read xml file withe tFileInputFullRow component then remove all lines with thois code " yourString.replaceAll("\\<\\?xml(.+?)\\?\\>", "") "  in a tMap 

 

pic2.png

 

 

 

 

 

I get solution from this link

 

Thanks,


All Replies
Forteen Stars

Re: GENERATE XML FILE

@idembele2,do you specify root tag? check the settings as below. roor tag you need to specify "StopArea".

 

Untitled.png

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Forteen Stars

Re: GENERATE XML FILE

@idembele2,if still,do you have issue please share the tFileOuputXml setting from your job.

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Seven Stars

Re: GENERATE XML FILE

Hi Manohar,

 

Yes still get bug, because my txmlMap has a document field.pic3.png

 

 

 

 

 

 

 

 

 

And with your suggestion, i have other xml tag 

 

pic4.png

 

 

 

 

 

 

 

 

 

 

 

 

Thanks,

Forteen Stars

Re: GENERATE XML FILE

@idembele2, Can you share your smaple input data?

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Forteen Stars

Re: GENERATE XML FILE

did you verify below link.

https://help.talend.com/reader/ixBASPZJ7IvqUQVupZwWbg/EFuE5Nul595D24TRwbFnbw

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Seven Stars

Re: GENERATE XML FILE

Hi,

I jind another way to solve this problem, i read xml file withe tFileInputFullRow component then remove all lines with thois code " yourString.replaceAll("\\<\\?xml(.+?)\\?\\>", "") "  in a tMap 

 

pic2.png

 

 

 

 

 

I get solution from this link

 

Thanks,

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch