用于比较xml文件的工具或库 [英] Tool or library for comparing xml files

查看:235
本文介绍了用于比较xml文件的工具或库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个XML比较工具,理解xml。它不能是一行一行的比较像WinMerge或超越比较。



一个理想的解决方案将显示类似于Word 2007显示跟踪更改的方式的变化。 即插即用,但显示的差异混乱的方式。它没有前后的概念,它只是显示了差异:





工具应该具有使用属性作为键的概念,因此它不认为元素的重新排序列表已经改变。 DeltaXML执行此操作,但我未能为屏幕截图正确设置。






更新:



到目前为止 ExamlXML < a> 是最好的开箱即用解决方案。但它缺乏DeltaXML的变更管理概念。



DeltaXML 几乎是我需要的解决方案,但是具有更多功能的东西会更好。 DeltaXML需要编写java代码来调用api,同时编写XSL来将xml转换为期望的输入。

解决方案

理解你的问题,你可能有一个应用程序使用XML文件作为数据存储,GUI将技术标签名称抽象为用户友好标签 - 再次,我假设。因此,这将是一个自然延伸,以类似的方式查看差异。我也假设你的应用程序没有跟随抽象概念的diff设置。



我做了一些搜索,发现一个应用程序( ExamXML ),它似乎与高亮功能接近。我下载了eval版本并针对它测试了你的文件:





这是一个很好的突出差异。它看起来很有互动性,弹出有多少区别。看起来你可以改变它使用的颜色,所以也许你可以使用灰度和白色来强调标签。它似乎也有很多选项,你可以为您的用户预先设置。



我想注意,你会很难找到一个XML比较工具,不会显示标签名称,因为标签是什么给内容上下文。如果你去掉上下文,变得很难理解正在显示的数据。无论如何,这个工具可能是有帮助的。你还试图向你的用户展示这些工具,看看他们愿意忍受,有时他们可能会让你感到惊讶。希望这有助于!


I am looking for an XML comparing tool that understands xml. It cannot be a line by line comparision like WinMerge or Beyond Compare.

An ideal solution would be one that shows changes similar to the way Word 2007 shows track changes. DeltaXML does this, but does not come with a real GUI 'out of the box' and is $500 per user!:

ExamXml works out of the box but displays the differences in a confusing manner. It does not have a concept of before and after, it just shows the differences:

The tool should have the concept of using attributes as a key, so that it does not think that a reordered list of elements has changed. DeltaXML does this but I failed to set it up correctly for the screen shot.


UPDATE:

So far ExamlXML is the best out of the box solution. But it lacks the change management concepts of DeltaXML. Resulting in some usability problems.

DeltaXML is pretty much the solution I need, but something with more functionality out of the box would be better. DeltaXML requires writing java code to call the api, along with writing XSL to transform the xml into the expected input.

解决方案

If I understand your problem, you likely have an application that uses XML files as the data storage and the GUI abstracts the "technical" tag names into "user friendly" labels - again, I am assuming. So it would be a natural extension to view differences in a similar way. I am also assuming your application doesn't have a diff facility that follows the "abstraction" concept.

I did some searching and found one app (ExamXML) that seems to come close with highlighting features. I downloaded the eval version and tested your files against it:

It does a pretty good job of highlighting the differences. It seems pretty interactive and pops up with how many differences. It looks like you can change the colors it uses, so maybe you can use grays and whites to de-emphasize the tags. It also seems to have a lot of options that you can pre-set for your users as well.

I want to note that you will be hard pressed to find an XML comparison tool that will not show the tag names, as the tags are what give the content context. If you take away context, it becomes difficult to understand the data being displayed. Anyhow, maybe this tool might be helpful. Have you also tried to show your users some of these tools and see what they are willing to tolerate, sometimes they may surprise you. Hope this helps!

这篇关于用于比较xml文件的工具或库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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