java - Is there Swing component that will automatically format XML? -


i looking java swing component, automatically format messy xml (in 1 line, see example):

<person><name>joe</name><surname>black</surname></person> 

etc. etc.

its not nice see billion lines long line :) , hope there component, that'll dirty work me. thankx

edit: xml input plain string database, there no real xml doc me :(

you don't need rely on swing component formatting. can try pretty printing xml , set formatted output directly in component. has been asked before.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -