title: how to compare two xml files depending on a specific attribute value?
body: <p>i want to know if it is possible to make xmlunit compare only nodes that have the same value of a specific attribute.. for example in make case i want xmlunit to compare nodes which have the same value of MOID ( attribute )
  here is two xml files :</p>
  
  <p>controle.xml:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&gt;
    &lt;HWData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;Header xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" version="1.0"/&gt;
      &lt;NE MOID="WBTS-4073" NEType="WBTS"&gt;
       &lt;EQHO MOID="EQHO-1-0" serialNumber="V7124400225"&gt;
         &lt;UNIT MOID="UNIT-FAN-1" State="enabled" serialNumber="V735"&gt;&lt;/UNIT&gt;
         &lt;UNIT MOID="UNIT-FAN-3" State="enabled" serialNumber="V745"&gt;&lt;/UNIT&gt;
         &lt;UNIT MOID="UNIT-FAN-2" State="enabled" serialNumber="V734"&gt;&lt;/UNIT&gt;
       &lt;/EQHO&gt;
      &lt;/NE&gt;
    &lt;/HWData&gt;
  </code></pre>
  
  <p>test.xml :</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&gt;
    &lt;HWData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;Header xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" version="1.0"/&gt;
      &lt;NE MOID="WBTS-4073" NEType="WBTS"&gt;
       &lt;EQHO MOID="EQHO-1-0" serialNumber="V7124400225"&gt;
         &lt;UNIT MOID="UNIT-FAN-2" State="enabled" serialNumber="V734"&gt;&lt;/UNIT&gt;
         &lt;UNIT MOID="UNIT-FAN-1" State="disabled" serialNumber="V735"&gt;&lt;/UNIT&gt;
         &lt;UNIT MOID="UNIT-FAN-3" State="enabled" serialNumber="V745"&gt;&lt;/UNIT&gt;
       &lt;/EQHO&gt;
      &lt;/NE&gt;
    &lt;/HWData&gt;
  </code></pre>
  
  <p>Is there a way to achieve that with xmlunit !!
  any other suggestions are welcomed..
  thanks in advance </p>