You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by anujkhandelwal <kh...@gmail.com> on 2014/04/21 15:29:20 UTC

Camel for XML data

I have a use case where I want to read an XML document from a flat file and
select XML element of interest using XPath accordingly output to a JMS
destination. 

  
Can I use Camel for this use case ? 


Thanks,
Anuj



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-for-XML-data-tp5750397.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel for XML data

Posted by Larry Meadors <la...@gmail.com>.
Yes.

On Mon, Apr 21, 2014 at 7:29 AM, anujkhandelwal
<kh...@gmail.com> wrote:
> I have a use case where I want to read an XML document from a flat file and
> select XML element of interest using XPath accordingly output to a JMS
> destination.
>
>
> Can I use Camel for this use case ?
>
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-for-XML-data-tp5750397.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AW: Camel for XML data

Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello

Please read the official documentation wrt this subject here:
http://camel.apache.org/exception-clause.html

regards
Grzegorz Grzybek


2014-04-22 9:13 GMT+02:00 anujkhandelwal <kh...@gmail.com>:

> Thanks,
>
> I am new with camel. One more Question :
>
> What is the way to handle exceptions and errors while processing the
> message
> through camel ?
>
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-for-XML-data-tp5750397p5750421.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: AW: Camel for XML data

Posted by anujkhandelwal <kh...@gmail.com>.
Thanks, 

I am new with camel. One more Question : 

What is the way to handle exceptions and errors while processing the message 
through camel ? 


Thanks,
Anuj



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-for-XML-data-tp5750397p5750421.html
Sent from the Camel - Users mailing list archive at Nabble.com.

AW: Camel for XML data

Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
> I have a use case where I want to read an XML document from a flat file
> and select XML element of interest using XPath accordingly output to a
> JMS destination.
> 
> 
> Can I use Camel for this use case ?

Yes. :)


Ok, some more words ....
Written from mind without the manual, so have a look at that.


from("file:my.xml")
    .setBody(xpath("/select/node"))
    .to("jms:...")


Jan