我必须比较两个XML文件并突出显示WPF中的差异C# [英] I have to compare two XML file and highlight the difference in WPF C#

查看:86
本文介绍了我必须比较两个XML文件并突出显示WPF中的差异C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有两个XML文件,我们必须找到差异,并在wpf c#中显示不同颜色的差异,如TFS。

我正在使用diffplex库进行比较,它逐行进行比较

节点逐节点。

如果有人想要比较,请提供帮助两个xml文件。



谢谢,



我尝试过:



我正在使用diffplex库进行比较,它逐行进行比较而不是按节点逐行比较。

解决方案

Google搜索是你的朋友: WPF XML比较突出显示差异 - Google搜索 [ ^ ]



发现: c# - 比较XML片段&安培;返回差异 - 堆栈溢出 [ ^ ]

Hi All,

I have two XML file and we have to find the difference and show the difference in different color in wpf c# like TFS.
I am using diffplex library for comparison ,its doing comparison line by line not in
Node by node.
Kindly help if some one have Idea to compare the two xml file.

Thanks,

What I have tried:

I am using diffplex library for comparison ,its doing comparison line by line not   
Node by node.

解决方案

Google Search is your friend: WPF XML compare highlight differences - Google Search[^]

Found this: c# - Compare XML fragments & return differences - Stack Overflow[^]


这篇关于我必须比较两个XML文件并突出显示WPF中的差异C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆