Thanooja,

If you want to remove the namespace completely, just (temporarily)
remove the targetNamespace from your schema and regerate the sources.

If you simply want to use a different prefix than "ns1" you can declare
the prefix mapping on the Marshaller (see
Marshaller#setNamespaceMapping.

--Keith

Thanooja S wrote:
> 
> Hi All
> 
> I am using Castor 0.9.5.3 to generate classes from xsd using the
> SourceCodeGenerator and then to marshal Java Objects to XML.
> 
> But in the generated XML i am getting the prefix ns1: with the complex
> types. Is there anyway i can remove it ?
> 
> Thanks
> Thanooja
> 
>     ---------------------------------------------------------------
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev



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

Reply via email to