Hi,

can you please switch to the non-static marshal(Object) method, and see
whether this makes a difference ?

Regards
Werner

devorahf wrote:
> Thank you for responding!
> 
>       StringWriter out = new StringWriter();
> 
>       XMLContext context = new XMLContext();
>       context.setProperty(XMLConfiguration.NAMESPACES, "true"); ...
>       Marshaller m = context.createMarshaller();
>       m.setRootElement(message.getClass().getSimpleName());
>       m.setUseXSITypeAtRoot(true);
>       m.setNSPrefixAtRoot(true);
> 
>       m.setNamespaceMapping("pfx1", "http://...Item1";);
>       m.setNamespaceMapping("pfx2", "http://...Item2";);
> 
>       m.marshal(message, out);
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to