I want to compare an XML document. some of them are 50 KB. I am comparing OuterXml. is it effective? is there a more efficient way?
Depends on which comparison you want.
For example, if you just want to compare the contents in two files and get the status true / false, I would suggest using XmlReader for each of the two files you want to compare, and then analyze the nodes. The moment you encounter the difference, you can stop parsing.
XML-, , . ( )
XML- , . ( ).
, / DOM ( XmlDocument API).
XML - :
<node x="1" y="2" />
<node y="2" x="1" />
XML ( node ), , , .
Microsoft XmlDiff GotDotNet, , -.....
UPDATEXmlDiff, -, - - , Diff Patch Tool " MSDN.
: http://diffxml.sourceforge.net/
XmlDiff MicroSoft, . , MS XmlDiff , . open source, DiffXml - .
XML, MS XmlDiff, . , , XML, , node. XPath://[@], . XPath, attruibute . , XPath., , node XPath. , , , . , , , . , .XML, .: -)
Project: Merge - Windows, ( ) XML .
Source: https://habr.com/ru/post/1711320/More articles:Calling the cleanup code in mod_perl - perlHow can I call 3 REST endpoints at the same time? - javaexecuting a PHP script from program C and storing the results in a variable - cScala Signature HMAC-SHA1? - scalaHow to make Vim an extension of markers? - vimAccess text box from jQuery - javascriptСоздание прокси-сервера Proxy/Stub в VS 2008 - visual-studio-2008Several methods or parameters? - methodsHow can I change the Div style to Mousedown ?, or any other event for that matter ... - javascriptGoogle Charts Tutorial - google-app-engineAll Articles