Hi

Yeah xpath can be a pain in the ....
There is an option you can set on the xpath to force it to use a
certain result type. I think its resultType="java.lang.String".
That might help a bit.

As transform evalulates any expression it ought to be possible to set
the result of the xpath evaluation.

Otherwise you can try the enable the tracer to see the message as its routed
http://camel.apache.org/tracer.html

On Thu, May 7, 2009 at 10:35 AM, LavanyaKC <[email protected]> wrote:
>
> Hi
>
> I am not getting any output running the following xml file,
>
> <route xmlns="http://activemq.apache.org/camel/schema/spring"; id="null_1">
>    <from uri="file:///c:/temp1?noop=true" id="File_2"/>
>    <transform id="MessageTranslator_0">
>        <xpath>/Students/Student</xpath>
>    </transform>
>    <convertBodyTo type="java.lang.String" id="ConvertBodyTo_0">
>    </convertBodyTo>
>    <to uri="file:///c:/temp1/MsgtrnsDebug" id="File_0"/>
> </route>
>
> It works fine with other expressions like simple. Can we use xpath to
> translate a message?
>
> Thanks,
> Lavanya.
> --
> View this message in context: 
> http://www.nabble.com/Can-I-use-a-message-translator-with-an-xpath-expression--tp23422445p23422445.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration
Interview with me:
http://architects.dzone.com/articles/interview-claus-ibsen-about?mz=7893-progress

Reply via email to