Hi, Cristian. It seems that Dom4j does not handle new lines after every attribute. But it does handle formatted output.
refer
org.dom4j.io.OutputFormat for the more detailed information about formatting possibilities the Dom4j provide.
To reach the thing You need, it might be helpful to reload some methods in
org.dom4j.io.XMLWriter Or the other way to solve the problem - is to output the XML content into
string buffer and then add some format refinements using regular expressions.
[ February 28, 2008: Message edited by: Pavel Cherkashin ]
Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />www.linkedin.com/in/pcherkas