[
https://issues.apache.org/jira/browse/CAMEL-5826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505671#comment-13505671
]
Claus Ibsen commented on CAMEL-5826:
------------------------------------
Yes Rich is right. The streaming based tokenizer is not a full solution for all
namespace combos that you can throw at it. There is some other solution that
supports that, such as camel-stax, camel-vtdxml, or god forbid the xpath from
the JDK (though it loads it all in memory).
Anyway thanks to Rich we have a patch that should fix your use-case as well.
Rich fell free to work on the docs.
> Apache Camel 2.9 Splitter with tokenize dont work with namespaces
> -----------------------------------------------------------------
>
> Key: CAMEL-5826
> URL: https://issues.apache.org/jira/browse/CAMEL-5826
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Environment: Windows
> Reporter: Shrish Srivastava
> Assignee: Rich Newcomb
> Fix For: 2.10.3, 2.11.0
>
> Attachments: CAMEL-5826.patch
>
>
> when trying to tokenize a stream having namespaces, no tokens are produced
> with inheritNamespaceTagName property.
> -------------------------------------------------------------------
> <route id="hrp.connectorsCtxt.sddRcvFile2">
> <from
>
> uri="file:C:\Temp\esb\sdd\in?recursive=true&preMove=.processing&move=../.processed"
> />
> <camel:split streaming="true">
> <tokenize token="suiviDemande"
> inheritNamespaceTagName="suivisDemandes" xml="true"/>
> <log message="${header.CamelSplitIndex} :
> ${in.body}" />
> </camel:split>
> </route>
> -------------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira