[
https://issues.apache.org/jira/browse/CAMEL-3998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139738#comment-13139738
]
Christian Müller commented on CAMEL-3998:
-----------------------------------------
In my opinion, we should also support the following:
{code:java}
from("direct:start")
.choice()
.when().stax("//foo/bar[@name='Max']")
.to("..")
.when().stax("//foo/bar[@name='Moritz']")
.to("..")
{code}
or
{code:java}
from("direct:start")
.choice()
.when(stax("//foo/bar[@name='Max']"))
.to("..")
.when(stax("//foo/bar[@name='Moritz']"))
.to("..")
{code}
and
{code:java}
from("direct:start")
.filter().stax("//foo/bar[@name='Max']")
.to("..")
{code}
or
{code:java}
from("direct:start")
.filter(stax("//foo/bar[@name='Max']"))
.to("..")
{code}
> improve stax/jax components
> ---------------------------
>
> Key: CAMEL-3998
> URL: https://issues.apache.org/jira/browse/CAMEL-3998
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Romain Manni-Bucau
> Assignee: Christian Müller
> Fix For: Future
>
>
> it could be pretty cool to have an iterator to be able to iterate over a
> filtered tree of a xml document avoiding to load all the document in memory.
> it can be nice to do it loading sub objects using jaxb.
> i did a version here:
> http://code.google.com/p/rmannibucau/source/browse/camel/camel-stax/src/main/java/org/apache/camel/stax/expression/StAXJAXBIteratorExpression.java
> (i added some converters to help too).
--
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