Is there Swing component that will automatically format XML?
I am looking for Java Swing component, that will automatically format my messy XML (in one line, see example):
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 :(
You don't need to rely on a Swing component to do the formatting. You can try pretty printing your XML and set the formatted output directly in your component. This has been asked before.