开发者

How to compare document objects in java with XERCES?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜