How to merge two xml in one file and just highlight the changes

Having trouble installing Oxygen? Got a bug to report? Post it all here.
SmitaPatil
Posts: 93
Joined: Mon Aug 08, 2022 2:32 pm

How to merge two xml in one file and just highlight the changes

Post by SmitaPatil »

Hi Team,

I have tried diffUrl parameter to compare xml but , what I want to achieve is just one xml file which will merge both xml file and highlight just the changes for differences.
Could you please tell me if there is any way we have in oxygen web author to implement it ?


Thanks & Regards,
Smita
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: How to merge two xml in one file and just highlight the changes

Post by chrispitude »

Hi Smita,

How large is the file?

If it is not too big, you could use Tools > Compare Files to open the files side-by-side, choose one file to be the "merged" file, then manually merge the "other" side's changes into the "merged" side.
SmitaPatil
Posts: 93
Joined: Mon Aug 08, 2022 2:32 pm

Re: How to merge two xml in one file and just highlight the changes

Post by SmitaPatil »

Hi chrispitude,
I want to do it in oxygen web author not in editor.
till now I could able to compare as shown below,

but I want to check if there is any way to merge two files in one xml file and display it.

Thanks & Regards,
Smita
Last edited by SmitaPatil on Fri Sep 23, 2022 4:26 pm, edited 1 time in total.
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: How to merge two xml in one file and just highlight the changes

Post by chrispitude »

Hi Smita,

Merging can be easier when there is a third document that is a common ancestor of the two documents being merged (for example, A -> B1 and A -> B2 and you want to merge B1 and B2).

But in the example you're showing, where you have only two documents and the content simply differs, a computer algorithm will not be able to figure out the intent of how you want it merged. For example, the venue name is simply different in both inputs. You will likely need to do this manually.
Bogdan Dumitru
Site Admin
Posts: 142
Joined: Tue Mar 20, 2018 5:28 pm

Re: How to merge two xml in one file and just highlight the changes

Post by Bogdan Dumitru »

Hi Smita,

Unfortunately, you can only see the diff side-by-side but I've registered a feature request for you.
Bogdan Dumitru
http://www.oxygenxml.com
teo
Posts: 57
Joined: Wed Aug 30, 2017 3:56 pm

Re: How to merge two xml in one file and just highlight the changes

Post by teo »

Some news related to this thread thanks to the recently released version 26 of the Oxygen suite.
Follow this link for more information: https://www.oxygenxml.com/xml_editor/wh ... Comparison
The 2 compare actions recently added to the Tools menu are also available as scripts.
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply