3 Replies Latest reply on Jun 28, 2011 11:07 PM by Willem Jiang

    Configuring the Jaxb marshaller?

    jamie archibald Apprentice

      I have a route that uses the Jaxb marshaller:



      String pkg = ObjectFactory.class.getPackage().getName();

                JaxbDataFormat jaxb = new JaxbDataFormat(pkg);



                jaxb.setPartNamespace(new QName(






      .process( // do something )





      I want to know how I can configure the marshaller such that it won't output the xml declaration and also namespaces.