0

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 to do some operation. Can you please help me about this situation ?

Thank you all

John Watts
  • 8,717
  • 1
  • 31
  • 35
Ozer
  • 1,245
  • 4
  • 20
  • 27

1 Answers1

2

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

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614