[jdom-interest] Empty Elements

Jason Hunter jhunter at servlets.com
Tue Jun 24 11:12:32 PDT 2003


>> Hi folks,
>> I have a problem creating a Tag which only contains a blanks like
>> <tag>   </tag>
>> when I write it back it will result in <tag />, no matter how much 
>> blanks there are
> 
> Are you using a pretty printing serializer that strips white space? if 
> you need white space to be preserved be sure you don't set any 
> formatting options that affect white space like indenting or a maximum 
> line length.

Also make sure you're using at least beta 9.  I think beta 8 for a while 
had a bug involving this.

-jh-




More information about the jdom-interest mailing list