Willem is right. You will have to first transform your xml. You can use xslt to do this. Essentially it should look like this:
<Routes> <Route> <Address.../> </Route> <Route> <Person... /> </Route> </Routes> Then you can split it on /Routes/Route xpath eg: from("file:location").to("xslt:path/to/mytransform.xslt").split(xpath("/Routes/Route"))....continue route... Good luck. On Tue, Nov 19, 2013 at 7:17 AM, cameluser2013 <pratha...@gmail.com> wrote: > Thanks for your reply!!! > > Can you please expain step by step process to achieve this? > > I am very new to this..Just wanted to use this in my proejct. > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Splitting-up-XML-into-2-XMLs-tp5743468p5743517.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Christian Posta http://www.christianposta.com/blog twitter: @christianposta