title: Need help in comparing 2 xml files using XMLUnit ignoring spaces in differences
body: <p>I have a code in java comparing 2 xml files using XMLUnit. It is highlighting the differences for a extra space in one of the lines which I wish to ignore. How can I achieve this.</p>
  <p>Below are the settings used.</p>
  <pre><code>XMLUnit.setCompareUnmatched(true);
  XMLUnit.setIgnoreAttributeOrder(true);
  XMLUnit.setIgnoreComments(true);
  XMLUnit.setNormalize(true);
  </code></pre>
  <p>For Example:
  xml1:</p>
  <p><code>&lt;metadata&gt;&lt;div&gt;&lt;p&gt;This is a test&lt;/p&gt;&lt;/div&gt;&lt;/metadata&gt;</code></p>
  <p>xml2:</p>
  <p><code>&lt;metadata&gt;&lt;div&gt;&lt;p&gt;This is a test&lt;/p&gt; &lt;/div&gt;&lt;/metadata&gt;</code></p>
  <p>The space between <code>&lt;/p&gt;</code> and <code>&lt;/div&gt;</code> tags is highlighted in above example.</p>