Please take a look at the mailarchive before submitting next time :-)

handcoded version:

        Serializer serializer = Configuration.getSerializer();
        serializer.setOutputCharStream(writer);
        OutputFormat format = Configuration.getOutputFormat();
        format.setIndent(true);
        serializer.setOutputFormat(format);
        Marhaller marshaller = new Marshaller(serializer.asDocumentHandler());

or by modifying the castor.properties file:

        # True if all documents should be indented on output by default
        #
        org.exolab.castor.indent=true

Hope it helps,

lars


-----Urspr�ngliche Nachricht-----
Von: Lin Salisbury [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 19. Dezember 2001 17:00
An: [EMAIL PROTECTED]
Betreff: [castor-dev] Marshalling a Human Readable xml doc


Is it possible to set the marshaller to use line endings, so a human
readable xml doc is created?

Thanks

-----------------------------------------------------------
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