[ 
https://issues.apache.org/jira/browse/CAMEL-3966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133711#comment-13133711
 ] 

Christian Müller commented on CAMEL-3966:
-----------------------------------------

I think we have a few cases where using StAX is a better approach than using 
XPath.

- Filtering/Choice: You can stop parsing the remaining XML document after you 
get the needed node to make the decision.
- Splitting: You can split very large XML documents because we do not have to 
load the entire XML document into memory.

In my opinion, we can use the same expression to define the 
splitting/choice/filtering rule - XPath. But under the hut, we may use other 
techniques.
What do you think?
                
> allow xpath to use stax more easily
> -----------------------------------
>
>                 Key: CAMEL-3966
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3966
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Romain Manni-Bucau
>             Fix For: 2.9.0
>
>
> It could be nice to be able to use stax when we are filetring messages by 
> xpath.
> A boolean parameter is probably the easier way to configure it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to