"Ignore nodes by Xpath" in Compare Directories

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Posts: 1

"Ignore nodes by Xpath" in Compare Directories

Tue Aug 01, 2017 3:22 pm


I'm trying to merge two different versions of a large number of XML documents. The header and one other node of version 1 however should remain as they are. When using the "Compare files" functionality, this works nicely, because I can specify an Xpath to ignore the header and the other node. This is respected when merging the changes from version 2 into version 1 using the "Copy all changes from right to left" function.

Since I have about 1000 documents to process, I thought I would use the "Compare directories" functionality to process them all in one go. This time however, the "Ignore nodes by Xpath" seems to only be used for the diff comparison. When I use the "Copy change from right to left", all version 1 files get replaced entirely by version 2. Is this expected behaviour? If so, would there be any other way to achieve my goal?


Posts: 138

Re: "Ignore nodes by Xpath" in Compare Directories

Wed Aug 02, 2017 8:53 am

Hello Paul,

The "Ignore nodes by Xpath" option is available only for Diff Files. We do not have support in Diff Directories to merge the contents of the files and ignore some nodes. The only way to merge the contents of the files and ignore nodes is by using the Diff Files.
I will add an issue on our issue tracker to analyze this use case.
Thank you for feedback.

Best Regards,
Octavian Nadolu
<oXygen/> XML Editor

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 3 guests