title: Is there Swing component that will automatically format XML?
body: <p>I am looking for Java Swing component, that will automatically format my messy XML (in one line, see example):</p>
  
  <pre><code>&lt;person&gt;&lt;name&gt;Joe&lt;/name&gt;&lt;surname&gt;Black&lt;/surname&gt;&lt;/person&gt;
  </code></pre>
  
  <p>etc. etc.</p>
  
  <p>Its not very nice to see like billion lines long line :) And I hope there is some component, that'll do the dirty work for me. Thankx</p>
  
  <p><strong>Edit:</strong>
  I get XML input as plain string from database, so there is no real XML doc for me :(</p>