Thank you Amar,
it work very well.......
titexe
Ryadh Amar wrote:
>
> If you are using Camel 2.1, you can use "inline templating"
> ==============================
> from("direct:in").
> setHeader("CamelVelocityTemplate").constant("Hi this is a velocity
> template that can do templating ${body}").
> to("velocity:dummy");
> ==============================
>
>
>
> Ryadh Amar wrote:
>>
>> Use templating instead, in Camel, among the components available in
>> Camel, try Velocity:
>> http://camel.apache.org/velocity.html
>>
>> If you are using Camel 2.1, you can use "inline templating"
>> ==============================
>> from("direct:in").
>> setHeader("CamelVelocityTemplate").constant("Hi this is a velocity
>> template that can do templating ${body}").
>> to("velocity:dummy");
>> ==============================
>>
>>
>>
>> titexe wrote:
>>>
>>> Hello,
>>>
>>> I want to generate an XML File based on the fiels of the header of
>>> Message and the body of message.
>>>
>>> An example of the file that i want to generate :
>>>
>>> <Header>
>>> <foo>${in.header.foo}</foo>
>>> </Header>
>>> <Body>
>>> ${in.body}
>>> </Body>
>>>
>>> the problem, when i put this text into field <simple>, i receive an
>>> error.
>>>
>>> Any ideas?
>>>
>>> Thanks in advance
>>>
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/Camel-%3A-Genrating-XML-FILE-from-the-message-tp26830904p26832431.html
Sent from the Camel - Users mailing list archive at Nabble.com.