<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
Hi Geeks<BR>
<BR>
I am using Format.getPrettyFormat() with format.setIndent(" ") to save the XML.<BR>
<BR>
Using the above method doesnt allow to preserve the whitespaces between the Elements,<BR>
Eg : <MyText> hi </MyText><BR>
Jdom trims the whitespaces . <BR>
<BR>
On using the <FONT SIZE="3">Format.TextMode</FONT>.<FONT SIZE="3"><I>PRESERVE</I></FONT> , the xml is not saved in proper format.<BR>
<B><BR>
Can any buddy suggest some way to save xml in proper format ( preserving white spaces).</B><BR>
<BR>
<BR>
<FONT SIZE="3"><TT>Regards<BR>
<BR>
Vikas Mane<BR>
Kenati Technologies<BR>
</TT></FONT><BR>
</BODY>
</HTML>