title: XML formatter that can group
body: <p>I have an XML file like this:</p>
  
  <pre><code>&lt;site="X"&gt;
   &lt;function="DATA"&gt;
     &lt;address&gt;10.0.0.0/24&gt;&lt;/address&gt;
   &lt;/function&gt;
  &lt;/site&gt;
  &lt;site="X"&gt;
   &lt;function="DATA"&gt;
     &lt;address&gt;10.2.0.0/24&gt;&lt;/address&gt;
  &lt;/function&gt;
  &lt;/site&gt;
  &lt;site="X"&gt;
   &lt;function="VOICE"&gt;
     &lt;address&gt;10.4.0.0/24&gt;&lt;/address&gt;
   &lt;/function&gt;
  &lt;/site&gt;
  .... other entries
  </code></pre>
  
  <p>and i want it to be grouped together like:</p>
  
  <pre><code>&lt;site="X"&gt;
   &lt;function="DATA"&gt;
     &lt;address&gt;10.0.0.0/24&gt;&lt;/address&gt;
     &lt;address&gt;10.2.0.0/24&gt;&lt;/address&gt;
   &lt;/function&gt;
   &lt;function="VOICE"&gt;
     &lt;address&gt;10.40.0.0/24&lt;/address&gt;
   &lt;/function&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any ideas how to do that ?</p>