Hi Matt,

you could instantiate your own serializer (take a look at org.apache.xml.serialize) 
and pass it to the Marshaller
of Castor.

Arnaud

-> -----Original Message-----
-> From: Matt Small [mailto:[EMAIL PROTECTED]]
-> Sent: Tuesday, November 06, 2001 11:26 AM
-> To: [EMAIL PROTECTED]
-> Subject: [castor-dev] Carriage Returns and the indent property.
-> 
-> 
-> It looks to me like when i set 'org.exolab.castor.indent=true' CRLF pairs
-> are turned into spaces by either Castor or Xerces. The problem 
-> here is that
-> I want the best of both worlds. When I write schemas, I would definitely
-> like to have the indentation so I can read them in my text 
-> editor, but when
-> I am writing XML from generated objects, I need to preserve the 
-> returns.Is
-> there any way to set the Indent property on a case by case basis 
-> or would it
-> be possible to change some code so that I can have indents and 
-> returns? I am
-> willing to do code modifications but I dont quite know where to look.
-> 
-> I am using a version of castor that I got yesterday from CVS.
-> 
-> Thanks,
-> 
-> Matt
-> 
-> ----------------------------------------------------------- 
-> If you wish to unsubscribe from this mailing, send mail to
-> [EMAIL PROTECTED] with a subject of:
->      unsubscribe castor-dev

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

Reply via email to