I have similar kind of problem. I also want to remove <?xml version="1.0" encoding="UTF-8" standalone="yes"?> from my message body.
Previously we used JAXB and JAXB has fragment to remove the above tag <marshal> <jaxb prettyPrint="true" contextPath="XXX.model" fragment="true" /> </marshal> Now we are using <convertBodyTo type="XXX.model.MyClass" /> for String to Myclass and <convertBodyTo type="java.lang.String" /> for MyClass to String . But we get <?xml version="1.0" encoding="UTF-8" standalone="yes"?> in the message. could someone tell me how to remove that in convertBodyTo ? /Sarfaraj -- View this message in context: http://camel.465427.n5.nabble.com/convertBodyTo-org-w3c-dom-Document-class-fails-tp5029460p5719334.html Sent from the Camel - Users mailing list archive at Nabble.com.
