title: How to compare document objects in java with XERCES?
body: <p>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,</p>
  
  <pre><code>&lt;head&gt;
  &lt;value&gt; &lt;/value&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>and I will compare with another document object like,</p>
  
  <pre><code>&lt;head&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>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 ?</p>
  
  <p>Thank you all </p>