You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jurgends <ju...@pearlchain.net> on 2010/03/03 10:40:53 UTC

setting jaxb.noNamespaceSchemaLocation parameter

Hi,

I want to set the xsi:noNamespaceSchemaLocation="myxsd.xsd" when marshalling
an object in a camelroute, but can't seem to find out how.

When using a java marshaller you can use the
"jaxb.noNamespaceSchemaLocation"-parameter, but how is it done in a route?

It should be something like this, but this doesn't work:
<camel:marshal>
<camel:jaxb jaxb.noNamespaceSchemaLocation="myxsd.xsd"
contextPath="the.objectfactory.directory"/>
</camel:marshal>
-- 
View this message in context: http://old.nabble.com/setting-jaxb.noNamespaceSchemaLocation-parameter-tp27766068p27766068.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: setting jaxb.noNamespaceSchemaLocation parameter

Posted by Willem Jiang <wi...@gmail.com>.
Hi

Current camel-jaxb doesn't support this.
BTW, does JAXB support this out of box ?

Willem

Jurgends wrote:
> Hi,
> 
> I want to set the xsi:noNamespaceSchemaLocation="myxsd.xsd" when marshalling
> an object in a camelroute, but can't seem to find out how.
> 
> When using a java marshaller you can use the
> "jaxb.noNamespaceSchemaLocation"-parameter, but how is it done in a route?
> 
> It should be something like this, but this doesn't work:
> <camel:marshal>
> <camel:jaxb jaxb.noNamespaceSchemaLocation="myxsd.xsd"
> contextPath="the.objectfactory.directory"/>
> </camel:marshal>