I had a frustrating problem of being able to correctly store my values
OR have the ability to format the XML with indentation.  I've found the
problem and would submit it myself but have never supplied code to this
project and for such a simple fix I thought I'd let others more seasoned
decide if the entire project would benefit from the change.

In file src/main/org/exolab/castor/util/Configuration.java lines 872-874:
         // There is a bad interaction between the indentation and the
         // setPreserveSpace option. The indentated output is strangely
indented.
         if (!indent)

The comment is no longer accurate as Apache has fixed whatever made this
comment relevant.  I removed the if and always run
format.setPreserveSpace(true);  I don't know how this relates to the values:
     private final static String PRESERVE = "preserve";
     private final static String REPLACE = "replace";
     private final static String COLLAPSE = "collapse";
from StringValidator but I fixed my problem so have stopped looking.

Now I can have both indentation and proper spacing (including line
breaks) within simple content.

The indent property being used was org.exolab.castor.indent which was
set to true.

Thank you.
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to