[jdom-interest] Help: JDOM <CR><LF>

markus_tripp at sonynetservices.com markus_tripp at sonynetservices.com
Mon Feb 5 05:42:39 PST 2001


Hi Aaron,

use the setLineSeparator(String separator) method of the XMLOutputter
class.

Sample (System default line separator):
...
XMLOutputter outputter = new XMLOutputter();
outputter.setLineSeparator(System.getProperty("line.separator"));
outputter.output(doc, System.out);
...

Markus





Aaron Marc Schneider <schneider at hiko.de>@jdom.org on 05.02.2001 13:25:26

Gesendet von:  jdom-interest-admin at jdom.org


An:   jdom-interest at jdom.org
Kopie:
Thema:    [jdom-interest] Help: JDOM <CR><LF>




Hi everybody,

I got a Problem with JDOM.
I save a bunch of eMails to Disk in an XML File.

Once the program restarts it rereads the mails.xml file to an internal
Data Storage.

On Close these Data's are stored again in that File.

What happens is that all Carrige Return(s) and Line Feed(s) are lost
after the second writing of a Mail.
(once Stored -> CRLF are fine, reread and stored again the CRLF are
gone)

Does anyone know what's the Problem ?
Or rather how to fix that prob ?

TIA

 CU

 Aaron

--
Aaron Marc Schneider            mailto:schneider at hiko.de
HIKO medical communication      http://www.hiko.de
Teichstr. 15-19                 Tel: +49 6331 5169 38
D-66953 Pirmasens               Fax: +49 6331 5169 35
Germany
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com








More information about the jdom-interest mailing list