Shouldn't your use: <split> <xpath>/Feeds/Feed</xpath> <to uri="file:///out/"/> </split>
if your input is: <Feeds xmlns="urn:myXML"> <Feed>Test1</Feed> <Feed>Test2</Feed> </Feeds> as you explained? And as documented in [1], xpath will load the entire document into memory: -> not suitable for verry big payloads -> streaming="true" doesn't work And what Claus blogged in his blog (using tokenizeXML) is not possible in Camel 2.8.x. You have to use Camel 2.9.x for that, as documented in [1]... [1] http://camel.apache.org/splitter.html Best, Christian On Tue, Jun 26, 2012 at 10:46 PM, paramjyotsingh <paramjyotsi...@gmail.com>wrote: > Hi Claus, > > I read this article from you, > http://www.davsclaus.com/2011/11/splitting-big-xml-files-with-apache.html > about splitting big XML into small pieces. > > I am trying to do same thing in camel 2.8.1 but <tokenize> does not work > the > same way it works in 2.9.2 > > In 2.8.1 i am using following mechanism to split:- > > <split streaming="true"> > <xpath>/Records/Record</xpath> > <to uri="file:///out/"/> > </split> > > My Target i want to achieve:- > Input XML > > <Feeds xmlns="urn:myXML"> > <Feed>Test1</Feed> > <Feed>Test2</Feed> > </Feeds> > > XML after split should be:- > > <Feed xmlns="urn:myXML">Test1</Feed> > and > <Feed xmlns="urn:myXML">Test2</Feed> > > Please let me know how to achieve this in camel 2.8.x. > > Thanks and Regards, > Paramjyot Singh > > -- > View this message in context: > http://camel.465427.n5.nabble.com/XPath-Filter-not-working-tp5714310p5715131.html > Sent from the Camel - Users mailing list archive at Nabble.com. >