THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=camel/trunk/components/camel-jaxb/src/test/resources/org/apache/camel/example/springDataFormatWithEncoding.xml} |
Using a custom NamespacePrefixMapper
Starting with Camel 2.9.3, you can use a custom com.sun.xml.bind.marshaller.NamespacePrefixMapper
to define the namespace prefix for a given namespace uri. This feature is may only available in the JAXB RI!
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=camel/trunk/components/camel-jaxb/src/test/resources/org/apache/camel/jaxb/marshalWithNamespacePrefixMapper.xml} |
Dependencies
To use JAXB in your camel routes you need to add the a dependency on camel-jaxb which implements this data format.
...