[
https://issues.apache.org/jira/browse/CAMEL-7660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-7660.
--------------------------------
Resolution: Fixed
> Add support for expression on tokenizeXml
> -----------------------------------------
>
> Key: CAMEL-7660
> URL: https://issues.apache.org/jira/browse/CAMEL-7660
> 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 (http://camel.apache.org/splitter.html).
> 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
(v6.3.4#6332)