Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<transform>
  <simple>The following text\nis on a new line</simple>
</transform>

Leading and trailing whitespace handling

Available as of Camel 2.10.0

From Camel 2.10.0 onwards, the trim attribute of the expression can be used to control whether the leading and trailing whitespace characters are removed or preserved. The default value is true, which removes the whitespace characters.

Code Block
xml
xml
<setBody>
  <simple trim="false">You get some trailing whitespace characters.     </simple>
</transform>

Setting result type

Available as of Camel 2.8

...