problems with "indent"

NP <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
answering to myself:

two possibile solutions:
1. we must get the reference to the format of the XMLOutputter, then 
setting the indent line-separator parameters, and finally set the format
e.g.

XMLOutputter serializer = new XMLOutputter();                
Format format = serializer.getFormat();
format.setIndent("   ");
format.setLineSeparator("\n");
serializer.setFormat(format);

2. else, simply, using getPrettyFormat() method:
XMLOutputter serializer = new XMLOutputter();
serializer.setFormat(serializer.getFormat().getPrettyFormat())
(getPrettyFormat: two space to indent, and one newline...)
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.