On Thu, May 10, 2012 at 9:28 AM, Salomon <zorat...@hotmail.fr> wrote: > Hi! > > I'm a beginner in apache camel and I would develop a route which separate > XML tags in differents xml files with the split(). > > For example : > > <orders> > <order> > > </order> > <order> > > </order> > ... > <order> > > </order> > </orders> > > One <order> tags in one xml file. > > Does it possible to do that with camel and how? I didn't find solutions for > the moment. >
Yes split the xml using xpath. And then set a file name using a header with the key CamelFileName And use the file endpoint to write the file from X split xpath setHeader CamelFileName someNameHere.xml to file directory > -- > View this message in context: > http://camel.465427.n5.nabble.com/Separate-XML-tags-with-splitter-tp5699358.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/