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,

1 ACCEPTED SOLUTION

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,

6 REPLIES
Eleven 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
Eleven Stars

Re: GENERATE XML FILE

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

Manohar B
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,

Eleven Stars

Re: GENERATE XML FILE

@idembele2, Can you share your smaple input data?

Manohar B
Eleven Stars

Re: GENERATE XML FILE

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,