You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Goyal, Arpit" <ar...@sap.com> on 2014/12/09 11:08:56 UTC
Need leading/trailing spaces support in camel:simple
Hi Colleagues,
We have the following XML DSL (part of the whole xml), where we set the body using camel:simple tag. Somehow in the processing, we see that the spaces are trimmed at the end.
<camel:setBody>
<camel:simple>NameIDPlace
A 1 X
B 2 D
B 3 Bangalore
E 4 A </camel:simple>
</camel:setBody>
Camel Version: 2.12.x
Any pointers how to preserve this while using 'camel:simple' - some property may be?
Regards,
A.
Re: Need leading/trailing spaces support in camel:simple
Posted by Aki Yoshida <el...@gmail.com>.
you can set the trim attribute in the expression.
trim=false
and it think you should be using \r and \n instead of relying on the
implicit LF or the xml-char ref to be on the safer side in preserving
those chararacters.
2014-12-09 11:08 GMT+01:00 Goyal, Arpit <ar...@sap.com>:
> Hi Colleagues,
>
> We have the following XML DSL (part of the whole xml), where we set the body using camel:simple tag. Somehow in the processing, we see that the spaces are trimmed at the end.
>
>
> <camel:setBody>
>
> <camel:simple>NameIDPlace
>
> A 1 X
>
> B 2 D
>
> B 3 Bangalore
>
> E 4 A </camel:simple>
>
> </camel:setBody>
>
>
>
> Camel Version: 2.12.x
>
>
>
> Any pointers how to preserve this while using 'camel:simple' - some property may be?
>
>
>
> Regards,
>
> A.
>