[jdom-interest] help: JDOM looses CR LF
Schneider Aaron Marc
schneider at hiko.de
Tue Feb 6 02:04:46 PST 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hi all,
it' again me, Aaron.
I still got a problem with CR LF...
Let me describe my Problem exactly:
I've build a Simple SMTPServer for receiving mails...
These Mails (example file found later in this Mail) are written and
send by Netscape.
If i send one Mail it is stored correctly (as you could see)
Than I used to stop the server and restart it.(Testing purposes)
It than reread's the XML File.
If new Mails are arriving it added's them to the internally used
Vector.
BUT: If I store the mails after that (with a new one appended) the
result is
as seen below:(sadly)
<?xml version="1.0" encoding="UTF-8"?>
<eMails>
<Mail>
<FROM>schnearo at elwood.gw1.hiko.de</FROM>
<TO>tst at test.de</TO>
<IsReceived>true</IsReceived>
<IsToSend>false</IsToSend>
<DATA>Message-ID: <3A7FB4C9.63A116AA at elwood.gw1.hiko.de> Date:
Tue, 06
Feb 2001 09:24:42 +0100 From: test
<schnearo at elwood.gw1.hiko.de>
X-Mailer: Mozilla 4.7 [de] (WinNT; I) X-Accept-Language: de
MIME-Version:
1.0 To: tst at test.de Subject: TST Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit Test Test Test Test</DATA>
</Mail>
<Mail>
<FROM>schnearo at elwood.gw1.hiko.de</FROM>
<TO>tst at test.de</TO>
<IsReceived>true</IsReceived>
<IsToSend>false</IsToSend>
<DATA>Message-ID: <3A7FB4F8.B726C22C at elwood.gw1.hiko.de>
Date: Tue, 06 Feb 2001 09:25:29 +0100
From: test <schnearo at elwood.gw1.hiko.de>
X-Mailer: Mozilla 4.7 [de] (WinNT; I)
X-Accept-Language: de
MIME-Version: 1.0
To: tst at test.de
Subject: TEST
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
TEST
2
TEST
..
TEST2
</DATA>
</Mail>
</eMails>
Do you got any Ideas ?
I use Jdom b5 with the Std. SAX Builder.
I am not knowing how to do that with non deprecated methods, and an
E.-Mail without LineFeed's is worse,
aint it ?
I could get it to work (YES) with element.getContent(true); witch
preserves Whitespace, but this method is deprecated...
elem.getText() or elem.getTextTrim() won't work that way....
Any Ideas ? Feel really free to mail me...
TIA
CU
Aaron
P.S. And again special thanks to Markus @ sonynetservices.com , thank
you
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
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: Wir sind die Toten (1984 G.Orwell)
iQCVAwUBOn+85XagJ0lPGnD9AQHz2wP+OkceAsFgcnK5XV0ZjMgLflskBH1TORms
1pxeFdDFLIc3qpYn2coApbSJEY437oB535pNbg/tj5jhVJFOFfqPfmy/DUoHhuP/
dLjsmysnnKq5r1jzfvwFfAlVwECZOjSQMH/GW98N64YVyH5ppObR7N6seWCh/lLn
JcEggxDVEu4=
=qWiX
-----END PGP SIGNATURE-----
More information about the jdom-interest
mailing list