title: How to compare the two XML files having data and filter out based on common things in java?
body: <pre><code>&lt;safe&gt;
   &lt;risk&gt;
  &lt;evidence&gt;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;) OR 1=1 --&lt;/evidence&gt;
  &lt;/risk&gt;
  &lt;risk&gt;  
  &lt;evidence&gt;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;) AND 1=1 --&lt;/evidence&gt;
  &lt;/risk&gt;
  &lt;/safe&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;safe&gt;
  &lt;risk&gt;  
  &lt;evidence&gt;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;) AND 1=1 --&lt;/evidence&gt;
  &lt;/risk&gt;
  &lt;/safe&gt;
  </code></pre>