Free C# XML Diff library or class

女生的网名这么多〃 提交于 2019-12-07 16:02:18

问题


I’m looking for XML Diff class or library. There are my requirements: - open source :) - object model for output (*) - rather fast (for 4mb XML)

I'm trying to use MS XML Diff and Patch Tools, but I wanna get a list of objects with differences of 2 XML files (instead HTML markup).


UPD: Thanks for all of your responses. I implemented my own solution; it’s not too hard with Linq2Xml :) UPD2: Sorry guys, but i can't post my solution here now (i actually haven't got it because i have changed my work recently). Also my solution have some specific parts, so it can't suit common problems any way. The main advice is to use Linq2Xml, implement your logic and have fun :)


回答1:


I did some research on this topic.

Tool or library for comparing xml files




回答2:


Not quite sure from you post if you are tring to do this in code or not.

But if you are just after a nice programe to view the two documents side by side and see the difreances and make changes to them i would recomend Beyond Compare 3.




回答3:


The Microsoft XML Diff and Patch tool does give you the list of differences between 2 XML document. The output is an XML document that tells you how to change document #1 into #2.



来源:https://stackoverflow.com/questions/655141/free-c-sharp-xml-diff-library-or-class

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!