Hi If you want to split big XML files using xpath like expressions then mind that this impacts performance a lot.
I wrote a couple of blogs posts about this and what options you may have http://www.davsclaus.com/2011/11/splitting-big-xml-files-with-apache.html http://www.davsclaus.com/2011/11/splitting-big-xml-files-with-apache_24.html And in Camel 2.11 we offer a vtd-xml integration http://camel.apache.org/vtd-xml If you use the xpath then I suggest to use camel-saxon, to use the saxon library instead of what comes with the JDK which is buggy/slow and dont work to well (xalan). On Thu, Aug 30, 2012 at 2:07 PM, Christian Johansen <[email protected]> wrote: > Hi. > > We have a SOAP webservice (CRUD, routed by Camel) where our clients register > medical data. Now we have a request from one client to send data via files, > e.g. a large xml file containing lots of records, in the first > implementation, only create requests. > We want to split this file using camel and then forward the data to the > create endpoint and then aggregate the result for each individual record > back to one large result-file. Today we are using cxf and jax-ws. > The format of the bulk file is yet to be set, so any special requirements > here is not an issue. > > Is this possible using only Camel? I haven't had any luck finding anything > similar while searching through the documentation/examples. Can anyone point > me in the right direction? > > Thanks in advance > Christian Johansen > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Parsing-bulk-messages-from-file-xml-tp5718381.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
