Dave Cecchi writes:
 > Hello -
 > 
 > I have a question about how to avoid newlines being produced when
 > marshalling.  If I write out a value that contains spaces in it, such as
 > this:
 > 
 > <a>
 > 
 > <path>/ManThisIsLong/DontUnderestimateHowLongItIs/ItIsVeryLong/TadaALongPath
 > /ItIsStillVeryLong/Testing/With A Bunch Of Spaces</path>
 > </a>
 > 
 > The element will wrap when written out.  It doesn't appear obvious how/why
 > the newline is created.
 > 
 > This only happens when indenting is set to true:
 > 
 >   org.exolab.castor.indent=true
 > 
 > Due to a weakness in our implementation, the newline is unacceptable.  Any
 > ideas on what I might be doing wrong or a possible fix?

Castor rely on the Xerces serializer to output the marshalled data to
the XML file. If there is a problem, you should investigate xerces
serializer behavior.

seb 

-- 
There is a theory which states that if ever anyone discovers exactly
what the Universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarre and
inexplicable. There is another theory which states that this has
already happened.
       -- Douglas Adams, The Restaurant at the End of the Universe

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

Reply via email to