camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Resolved] (CAMEL-7660) Add support for expression on tokenizeXml
Date Fri, 06 May 2016 10:01:12 GMT


Claus Ibsen resolved CAMEL-7660.
    Resolution: Fixed

> Add support for expression on tokenizeXml
> -----------------------------------------
>                 Key: CAMEL-7660
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.14.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.18.0
> In order to be able to use tokenization elements based on the type of the to be processed
message I would like to request for support for expressions inside the tokenizeXML DSL element
> One use-case would be to determine the splitting element by identifying the type of the
document in a processor and then provide this information via an exchange property which then
can be used inside the attribute of tokenizeXml that supports expressions.
> The xpath DSL is not really an alternative as it comes with memory and processing time
costs and doesn't work in streaming mode.
> A proposal would be to add the following methods to
> {code}
> org.apache.camel.builder.ExpressionClause:
> public T tokenizeXML(Expression tagName, int group)
> public T tokenizeXML(Expression tagName)
> {code}
> Though as we need changes to the XML DSL also, we would need to make sure the model fits
that too.
> eg in other words. Allow to use camel expressions to define which tag name to use.

This message was sent by Atlassian JIRA

View raw message