You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dkum003 <DH...@amadeus.com> on 2013/04/02 07:29:14 UTC

Invoking .tokenizeXML from a custom processor

Hi,

I am aware that we can invoke the .tokenizeXML from the route builder. But
is there a way to invoke this through a processor. 

Say i want to split the xml to write it to a set of xml tags. I do not want
to write custom logic using xpath/dom to split this. Instead i would like to
use camel's .tokenizeXML method. 

Could you please guide me on this.

Regards,
Dhananjay



--
View this message in context: http://camel.465427.n5.nabble.com/Invoking-tokenizeXML-from-a-custom-processor-tp5730189.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Invoking .tokenizeXML from a custom processor

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can use the Tokenize language

org.apache.camel.language.tokenizer.TokenizeLanguage

It has a number of static methods to easily create the expression.
Then you can use that from a processor.



On Tue, Apr 2, 2013 at 7:29 AM, dkum003 <DH...@amadeus.com> wrote:

>
> Hi,
>
> I am aware that we can invoke the .tokenizeXML from the route builder. But
> is there a way to invoke this through a processor.
>
> Say i want to split the xml to write it to a set of xml tags. I do not want
> to write custom logic using xpath/dom to split this. Instead i would like
> to
> use camel's .tokenizeXML method.
>
> Could you please guide me on this.
>
> Regards,
> Dhananjay
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Invoking-tokenizeXML-from-a-custom-processor-tp5730189.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen