[From nobody Fri Aug 6 17:08:18 2004 Return-Path: <alexgp@atlantico.com.br> Received: from relay2.firstlink.com ([66.37.143.10]) by niles.mail.mindspring.net (Earthlink Mail Service) with ESMTP id 18NoOy23e3Nl3pm0 for <servlets@mindspring.com>; Mon, 24 Feb 2003 15:03:02 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by relay2.firstlink.com (Postfix) with ESMTP id 90024EDF67 for <servlets@mindspring.com>; Mon, 24 Feb 2003 13:03:01 -0700 (MST) Received: from mailsrv.atlantico.com.br (unknown [200.129.63.3]) by relay2.firstlink.com (Postfix) with ESMTP id 90186EDF65 for <jhunter@servlets.com>; Mon, 24 Feb 2003 13:02:56 -0700 (MST) Received: from IA03 (unknown [10.101.41.35]) by mailsrv.atlantico.com.br (Postfix) with SMTP id 29D2F6085D for <jhunter@servlets.com>; Mon, 24 Feb 2003 17:03:51 -0300 (BRT) From: "Alexandre Gomes de Paula" <alexgp@atlantico.com.br> To: <jhunter@servlets.com> Subject: White spaces problem Date: Mon, 24 Feb 2003 17:02:30 -0300 Message-ID: <HCEPJMBGMKMGDLGICACMCEIKCAAA.alexgp@atlantico.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by First Link Technology, Inc. X-Razor-id: ec96b284abf54f2d44615d34bc7c2770799cffff X-Mozilla-Status2: 00000000 Hello Jason Hunter i=B4m a java programmer and i=B4m having trouble with = JDOM XMLOutputter. I don=B4t want to have blank spaces removed from element=B4= s text but always my xml file is recorded without them. The problem is when i use =B4setNewlines(true)=B4 my blank spaces are gon= e when i have a string composed with only blank spaces. When i set newlines to false the problem is solved. But i can=B4t have my recorded XML file messed, so i need to use setNewLines(true) with setIndent(\t). i already tried this : XMLOutputter outputter =3D new XMLOutputter(); outputter.setEncoding("UTF-8"); outputter.setTextNormalize(false); outputter.setTextTrim(false); outputter.setTrimAllWhite(false); outputter.setNewlines(true); outputter.setIndent("\t"); and it didn=B4t work.. Please help me, what should i do? I=B4ll be very gratefull for your help! ]