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