开发者

How to compare document objects in java with XERCES?

开发者 https://www.devze.com 2023-04-12 09:53 出处:网络
I am trying to compare two Document objects and try to make operation according to result. For example I will have a Document object like,

I am trying to compare two Document objects and try to make operation according to result. For example I will have a Document object like,

<head>
<value> </value>
</head>

and I will compare with another document object like,

<head>
</head>

If the two Document objects will not be in the same format, I want开发者_Python百科 to do some operation. Can you please help me about this situation ?

Thank you all


XMLUnit is designed to do this kind of comparison, specifically for unit testing. But it can surely be used for other uses as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号