Hi Pablo,
assuming that you are using a mapping file, you need to define the
namespace uri in your mapping file, and then instruct the Marshaller to
use the default namespace definition through ...
marshaller.setNamespaceMapping("","http://mypropietary.xsd");
Does this make sense ?
Cheers
Werner
pablo fernandez wrote:
> Hi,
>
> I'd like my root element to have this xmlns:
>
> <friends xmlns="http://mypropietary.xsd">
>
> I've tryied this:
> marshaller.setNamespaceMapping("xmlns","http://mypropietary.xsd");
> but got:
> xmlns:xmlns="http://mypropietary.xsd" (note the duplicated 'xmlns')
>
> If I do this:
> marshaller.setNamespaceMapping("","http://mypropietary.xsd"); // or send
> null as the first arg
> I get:
> xmlns=""
>
> Any idea how can I make it work? Thanks!
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email