Hi,

In the project I am working in we use XML schemas to generate code. Using
that code we use the set method of the Castor object to add information. The
objects are then marshalled using Marshaller.marshal(castorObject,
stringWriter). I have indentation turned on using the Castor
castor.properties file. The problem is that after marshal the element with
text content where the text has two or more space characters will always
have a CR/LF after the first space character. This causes problems in the
target system for the XML. Fortunately this only happens when indent is set
to true. Is there any way of avoiding this? For now on I will have indent
turned off, but for debugging/loggin reasons I would like to always have it
set to true.
Btw, I am using Castor 1.2.

/Kristian

Reply via email to