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.html
Use JavaDoc power before asking on the mailing list, you'll get your answers quicker !
(http://www.dom4j.org/apidocs/index.html)
+ use http://www.dom4j.org/guide.html , and http://www.dom4j.org/cookbook/cookbook.html !
If you want more control on OutputFormat than what is provided, post a specific feature request.
Cheers, Dan/
At 11:07 18/01/2003 +0000, you wrote:
Hi
I need to output large feed files in XML format. Using a standard OutputFormat I get the following structure:
<? xml version="1.0" ?>
<table>
<row>
<field/>
<field/>
<field/>
<field/>
<field/>
</row>
</table>
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 closer to 10MB). I would like to reduce the number of whitespaces so that I would get:
<? xml version="1.0" ?>
<table>
<row><field/><field/><field/><field/><field/></row>
</table>
How do I create a custom output rules, i.e. to instruct the output when to insert a whitespace after an element?
Best regards
------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user