XMLUnit-比较中忽略"id"属性 [英] XMLUnit - Ignoring 'id' attribute in comparison

查看:78
本文介绍了XMLUnit-比较中忽略"id"属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用XMLUnit,我想知道是否有办法将其配置为忽略我要比较的标签的id属性.

I am currently working with XMLUnit and I am wondering if there is way to configure it to ignore only the id attribute of the tags I want to compare.

预先感谢您的帮助.

推荐答案

我将尝试实现自己的此帖子).很快就会发布结果.看来行得通,明天就要发布实施了.

I am gonna try to implement my own DifferenceListener to handle this need (see this post). Gonna post the result soon. It seems to work, gonna post the implementation tomorrow.

这篇关于XMLUnit-比较中忽略"id"属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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