Just about Marshaller,
I think Castor's Marshaller uses apache Serializer, Do you know how we can
tune it? I mean using OutputFormat? Because when my object contains some
HMTL markups, Castor's Marshaller replace the markups in the xml file by
"&ls;" 

Example : 
Class Toto
{
        Public String Var;
}

Toto t = new Toto();
t.Var="<p> coucou</p>"

===> The marshaller converts <p> as &ls;p>



Thanks ....

-----Message d'origine-----
De�: Keith Visco [mailto:[EMAIL PROTECTED] 
Envoy�: mercredi 2 juin 2004 20:37
��: [EMAIL PROTECTED]
Objet�: Re: [castor-user] [xml] marshaller



Roy,

Just don't use the static methods.

Marshaller m = new Marshaller(myWriter);
m.setNamespaceMapping(..., ...);
m.setSuppressXSIType(..);
m.marshal(myObj);

You don't have to use a static method! :-)

--Keith


Roy van der Kuil wrote:
> 
> Hi All,
> 
> Sorry to come up with all those questions... But I am wondering about how
to
> use the Marshaller object. There are a lot of setters on it which I'd like
to
> use, for example:
> setNameSpaceMapping
> setSuppressXSIType
> 
> But since a new Marshaller is created inside the static Marshaller.marshal
> methods I am wondering where to set these settings. The numer of objects
> created by the xsd I use are about 300+ which means I do not see a easy
way
> to set these values. Do I miss something here?
> 
> If not, would a MarshallerConfig object (with static methods) be of any
use
> here? This way before calling marshall I could just setup my config
settings
> and the correct xml is created..
> 
> Thanks in advance,
> Roy
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user



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

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

Reply via email to