I'd really recommend using VTD or something similar to split large XML. Much faster and more memory efficient. Define a bean that does the split and returns an iterator and supply it as the method for split. Simple example using VTD to split XML: http://stackoverflow.com/questions/1640472/java-how-to-split-xml-stream-into-small-xml-documents-xpath-on-streaming-xml-pa/1641152#1641152
-- View this message in context: http://camel.465427.n5.nabble.com/Splitting-big-XML-files-using-xpath-and-streaming-tp3300695p3300842.html Sent from the Camel - Users mailing list archive at Nabble.com.