Is there a .NET XPath "diff" command for two XmlDocuments?

I have a directory handler that I created that updates itself by evaluating the xml-based manifest file for the current state and comparing it with the local .xml manifest.

I am currently processing each node to look for differences in some attributes to determine if an update is needed. I scroll through every node in the tree.

I was wondering if there was a more optimized XPath or a similar way to make "diff" on 2 XmlDocuments and return to it all the nodes that are different from each other, so I can only handle them.

This is a .NET 2.0 C # application.

Thank,

John

+3
source share
2

, XPath. , . , node, , , . , , ( ).

, XML XSL, . A node , . XML, , , . concurrency, .

0

Source: https://habr.com/ru/post/1732785/


All Articles