Hi,

I have a simple routebuilder configured to read an xml message from a JMS
and then split the message:

from("seda:horseRacingResults_all_finished_ceefax")                     
  .splitter(xpath("/myXml")).convertBodyTo(String.class)
  .setBody(groovy("'<myNewXml>'+request.body+'</myNewXml>'"))
  .to("mock:afterSplit");

It seems that the groovy component doesn't like xml bodies so I have
converted it to a String. However in the source xml message there are
escaped characters such as: ΒΌ fraction 1/4 &frac14; &#188; which I need to
preserve. I wondered if convertBodyTo(String.class) should escape
characters? 

Would appreciate any feedback.

Thanks
Jonathan

-- 
View this message in context: 
http://www.nabble.com/.convertBodyTo%28String.class%29-tp14718107s22882p14718107.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to