Hi,
I am using CAMEL 2.9 with XML DSL and blueprint, I have a design question:
I am processing (routing ;) following xml: The XML contains a reference to a
specific file.
<mymessage>
<uri>
<protocol>file</protocol>
<path>/mydirectory/myfile.ext</path>
<size/>
.......
</uri>
</mymessage>
The path element contains the path of a file I need to read; would something
like this be possible:
<from uri="direct:incoming-msg">
<transform>
<xpath
resultType="java.io.File">/mymessage/uri/path/text()</xpath>
</transform>
<to uri="direct:message-file"/>
A simple solution would be to transform the body inside a bean... but I would
like to know if there is a pure XML DSL equivalent for that..
Thanks for your help,
Regards,
Guillaume.