title: Format XML, one attribute per line, with JDom
body: <p>I use JDom for XML parsing / formatting.
  I would like long lines of attributes to be split into several lines.</p>
  
  <p>Like :</p>
  
  <pre><code>&lt;node att1="Foo" att2="Bar" att3="Foo" /&gt;
  </code></pre>
  
  <p>Into :</p>
  
  <pre><code>&lt;node
       att1="Foo"
       att2="Bar"
       att3="Foo" /&gt;
  </code></pre>
  
  <p>According to the <a href="http://www.jdom.org/docs/faq.html#a0070" rel="nofollow">JDom FAQ</a>, JDom can be transformed into standard DOM and SAX events. So any renderer that supports SAX or DOM and is capable of such pretty rendering would be great.</p>
  
  <p>Thanks in advance.</p>