See
http://docs.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSchema.html
how to customize the namespace prefix.
Use the "-npa" option from the xjc compiler or maven-jaxb2-plugin to prevent
to update the package-info.java file.
--
View this message in context:
http://camel.465427.n5.n
I created the ticket: https://issues.apache.org/jira/browse/CAMEL-5267
Best,
Christian
On Tue, May 8, 2012 at 8:57 AM, Claus Ibsen wrote:
> On Mon, May 7, 2012 at 10:50 AM, Thomas Johansen
> wrote:
> > Thanks Yogesh,
> >
> > However I can't see that there is a way to do what is suggested in th
On Mon, May 7, 2012 at 10:50 AM, Thomas Johansen wrote:
> Thanks Yogesh,
>
> However I can't see that there is a way to do what is suggested in those
> links:
>
> marshaller.setProperty(”com.sun.xml.bind.namespacePrefixMapper”, new
> MyNamespacePrefixMapper());
>
> as I can't reach the marshaller
Thanks Yogesh,
However I can't see that there is a way to do what is suggested in those
links:
marshaller.setProperty(”com.sun.xml.bind.namespacePrefixMapper”, new
MyNamespacePrefixMapper());
as I can't reach the marshaller through Camel's JaxbDataFormat.
Cheers,
Thomas
2012/5/4 ychawla
> H
Hi Thomas,
You can use JaxB NameSpacePrefixMapper to customize what the namespaces look
like. Basically it would take ns2 and set it to something more intuitive of
your choosing. See here for details:
http://stackoverflow.com/questions/1982977/is-it-possible-to-customize-the-namespace-prefix-tha