Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
portix
Contributor II
Contributor II

tAdvancedFileOutputXML and empty elements

Hello,

I'm working with an XML file, and some elements are empty, displayed like this: <element/>. However, after processing them through tAdvancedFileOutputXML and leaving them empty, Talend transforms them into this format: <element></element>. Is there any way to maintain the original structure, like this: <element/>?

Thanks!

Labels (3)
1 Solution

Accepted Solutions
Dave_Simo
Creator II
Creator II

Hello,

 

To obtain this in your final xml, a solution would be to add a tMap or a tJavarow

Dave_Simo_0-1730887089408.png

In which you would do a small transformation like this

Dave_Simo_1-1730887215266.png

 

And in the end you will get what you expected

Dave_Simo_2-1730887306011.png

Best Regards,

View solution in original post

1 Reply
Dave_Simo
Creator II
Creator II

Hello,

 

To obtain this in your final xml, a solution would be to add a tMap or a tJavarow

Dave_Simo_0-1730887089408.png

In which you would do a small transformation like this

Dave_Simo_1-1730887215266.png

 

And in the end you will get what you expected

Dave_Simo_2-1730887306011.png

Best Regards,