OutputFormat format = OutputFormat.createPrettyPrint();
format.<../../../org/dom4j/io/OutputFormat.htm#setTrimText(boolean)>setTrimText
();
format.<../../../org/dom4j/io/OutputFormat.htm#setNewlines(boolean)>setNewlines();
...etc...
See: http://www.dom4j.org/apidocs/org/dom4j/io/OutputFormat
Hi
I
don't know about how to create a custom output rule. But if you just want the
output to be in a compact format take a look in the quick start page at
dom4j homepage. There is a example for how to do this!
http://www.dom4j.org/guide.html#Writing%20a%20document%20to%20a%20file
/Christ
Hi
I need to output large feed files in XML format. Using a standard OutputFormat I get the following structure:
For a large number of records with large-ish number of fields (say 20) the XML files become huge (say for 2 MB CSV file, and equivalent XML is cl