Hi Sven,

Simplest would be to apply an XSLT transformation to filter out unwanted
elements. With camel-saxon you get XSLT 2.0 support.

Use the identity transform along with rules that match the unwanted
elements and output nothing.

A Google search will bring up a lot of references of this popular XSLT
pattern.

Regards,
Raúl.
On 24 May 2013 13:56, "Sven Richter" <[email protected]> wrote:

> Hi everybody,
>
> i have a general question about camel usage.
> I want to read an xml source, filter out a few tags, convert that to
> rss and put it into mongodb.
> What works is the reading of xml and storing rss into mongodb.
>
> Now what i cannot get a clue of is how i convert that xml to rss AND
> filter out a few xml tags.
> I have found the camel-xmljson lib, but it looks like it only converts
> the whole xml w/o the possibility to filter.
>
> How can i filter the xml? Do i have to convert it to a pojo and do it
> with plain code? Or is there a camel library available to do that?
>
> Best Regards,
> Sven
>

Reply via email to