Ha ha that shows how complex it is to use the JDK API to do a DOM -> String transformation. With Camel its just as simple as asking it for the type.
String xml = exchange.getIn().getBody(String.class); See its just 1 line of code. ----- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/ -- View this message in context: http://camel.465427.n5.nabble.com/Why-camel-convertBodyTo-type-org-w3c-dom-Document-can-t-work-tp4280965p4284522.html Sent from the Camel - Users mailing list archive at Nabble.com.
