[jdom-interest] Empty Elements
    Elliotte Rusty Harold 
    elharo at metalab.unc.edu
       
    Tue Jun 24 06:16:43 PDT 2003
    
    
  
At 1:25 PM +0200 6/24/03, Carsten Hau wrote:
>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.
-- 
   Elliotte Rusty Harold
   elharo at metalab.unc.edu
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
    
    
More information about the jdom-interest
mailing list