Page 1 of 1

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

Posted: Fri Sep 23, 2022 1:11 pm
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

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

Posted: Fri Sep 23, 2022 1:28 pm
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.

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

Posted: Fri Sep 23, 2022 1:55 pm
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

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

Posted: Fri Sep 23, 2022 2:20 pm
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.

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

Posted: Mon Sep 26, 2022 12:01 pm
by Bogdan Dumitru
Hi Smita,

Unfortunately, you can only see the diff side-by-side but I've registered a feature request for you.

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

Posted: Fri Oct 13, 2023 10:40 am
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.