I am looking for Java Swing component, that will automatically format my messy XML (in one line, see example):
<person><name>Joe</name><surname>Black</surname></person>
etc. etc.
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
Edit: I get XML input as plain string from database, so there is no real XML doc for me :(