I'm using Castor 1.2.

/Kristian

2008/8/24 Werner Guttmann <[EMAIL PROTECTED]>

> Kristian,
>
> what version of Castor are you using when trying this ?
>
> Werner
>
> Kristian Gustafsson wrote:
> > Hi
> >
> > I want to add indentation to XML documents created by the Castor
> Marshaller
> > class and I want to do it in the code. I have tried to instantiate a
> > marshaller and use the setProperty method to set indent to true:
> >
> > StringWriter sw = new StringWriter();
> > Marshaller m = new Marshaller(sw);
> > m.setProperty("org.exolab.castor.indent", "true");
> >
> > Using this marshaller the generated XML document will not be indented.
> Why?
> >
> > My second attempt was to use LocalConfiguration to change the indent
> > property. But I cannot find the class LocalConfiguration (!). I have only
> > managed to find it in the JavaDoc but not in the castor jar-files. I have
> > downloaded them directly from the webpage and browsed them without
> success.
> > Can someone please help?
> >
> > Regards,
> > Kristian
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to