Hi,

can you please repost your email as the XML somehow didn't make it
across as intended.

Regards
Werner Guttmann

d f wrote:
> We're using Castor 1.2 to generate classes off a schema. The schema has
> several namespace imports used.
> 
> When marshalling, we'd like to see the namespace mapping all defined at
> the root element and each of the elements referring to the namespace by
> its prefix. Instead, the elements each refer to the namespace and add an
> ns# to be used as a prefix for that element.
> 
> Example ActualResults:
> 
> 
> ABC123
> ABC567
> 
> 
> 
> Example ExpectedResults:
> 
> 
> ABC123
> ABC567
> 
> 
> 
> I've unsuccessfully tried the following when marshalling:
> 
> 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";);
> 
> My apologies if this question has already been answered.
> --------------------------------------------------------------------- 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