title: How to compare jaxb, object, string to find differences
body: <p>I would like to know how I can compare two String/Object (JaxB) to find the differences.</p>
  
  <p>What I mean with an example :</p>
  
  <p>I have this request:</p>
  
  <pre><code>&lt;zoo&gt;
  &lt;zooId&gt;12321&lt;/zooId&gt;
  &lt;zooName&gt;From Belgium&lt;/zooName&gt;
  &lt;zooAddress&gt;berlin&lt;/zooAddress&gt;&lt;/zoo&gt;
  </code></pre>
  
  <p>The next day, I have this request (for an update):</p>
  
  <pre><code>&lt;zoo&gt;
  &lt;zooId&gt;12321&lt;/zooId&gt;
  &lt;zooName&gt;From Germany&lt;/zooName&gt;  
  &lt;phone&gt;0123456789&lt;/phone&gt;
  &lt;zooAddress&gt;berlin&lt;/zooAddress&gt;&lt;/zoo&gt;
  </code></pre>
  
  <p>And the differences I would like to have is:</p>
  
  <pre><code>&lt;zoo&gt;   
  &lt;zooName&gt;From Germany&lt;/zooName&gt;  
  &lt;phone&gt;0123456789&lt;/phone&gt;&lt;/zoo&gt;
  </code></pre>
  
  <p>I talked about String, Object and "Jaxb Object" because I work with a JaxB request, I can convert it in a String
  and I have a mapping  "one to one" with an hibernate entity for my persistence layer. I don't want to limit the choices/ideas ;-)</p>
  
  <p>Thanks in advance,</p>
  
  <p>François</p>