Combine two XML files into one

Post Reply
Sean IO
Newbie
Posts: 18
Joined: Mon Dec 03, 2018 7:58 pm

Combine two XML files into one

Post by Sean IO »

Can anyone recommend a way to merge/combine two XML files into one?

I have an InDesign XML report and a PitStop Preflight XML report that I want to combine. I have processed each XML to extract the info I need but I am struggling with how to combine into one report.

Currently I have the two reports renamed in order for my XLST transform to combine the two but I receive an error 'Can't parse input XML error'.

Thanks in advance.
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Combine two XML files into one

Post by freddyp »

One approach is to use the "Make XML" app (https://www.enfocus.com/en/appstore/product/make-xml). You create the structure you want and you insert variables taking values from both datasets. If the number of fields you are interested in is not too high, this is definitely the easiest way to do it.
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Combine two XML files into one

Post by jan_suhr »

You could also use the "Take Notes" app to do this. It can combine Datasets and then you can let Switch export it out as one XML-file.

https://www.enfocus.com/en/appstore/product/take-notes
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Post Reply