Merging two xml files

One Star

Merging two xml files

Hi,
I am in need to merge some xml files to a single output xml file.The final output contains all the tags of child files.Can u plz tell me how to do this using talend?
Regards,
Nivaz
Community Manager

Re: Merging two xml files

Hello Nivaz
I think you can try the 'append the source xml file' feature on tAdvanceFileOutputXML component.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Merging two xml files

Hi Shong,
Thanks for the reply.tAdvanceFileOutputXML can be the output component.How can I provide the input files for tAdvanceFileOutputXML?
PLease reply.
REgards,
Nivaz
One Star

Re: Merging two xml files

If you want to merge two XML files using Visual C#.net that Dataset concept will be used to do this. You can try some code also with the help of XML namespace and XMLnode.
System.Xml.XmlDocument oDocFirst = new XmlDocument();
oDocFirst.Load("d:\\xmlfiles\\parent.xml");

System.Xml.XmlDocument oDocSecond = new XmlDocument();
oDocSecond.Load("d:\\xmlfiles\\child.xml");
If you want to merge them on a simple way than you can try tAdvanceFileOutputXML to merge your two XML files where you have to specify parent file and the child file.

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

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads