"Ignore nodes by Xpath" in Compare Directories
Posted: Tue Aug 01, 2017 3:22 pm
Hello,
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?
Thanks,
Paul
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?
Thanks,
Paul