Hi If you use xpath as the expression for splitting XML. Then spent time to google and learn a bit more how to do that.
The biggest problem is often that with xpath you must make sure the namespace mapping is correct. And yes it can be a bit of problem to get it working. I suggest if there is some tool / plugin in your IDE etc. to do live xpath expressions and see until it works. 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. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen