December 2013
Intermediate to advanced
424 pages
9h 7m
English
XML is one of the most frequently split payload types. This recipe will show how you can use Camel's support for implicit type conversion, and XPath support, to process XML fragments individually.
The Java code for this recipe is located in the org.camelcookbook.splitjoin.splitxml package. The Spring XML files are located under src/main/resources/META-INF/spring and prefixed with splitXml.
Consider the following XML file:
<books> <book category="Tech" title="Apache Camel Developer's Cookbook"> <authors> <author>Scott Cranton</author> <author>Jakub Korab</author> </authors> </book> <book category="Cooking" title="Camel Cookbook"> <authors> <author>Heston Ramsey</author> <author>Gordon Blumenthal</author> ...
Read now
Unlock full access