VTD-XML
Available as of Camel 2.11
The VTD-XML component supports the VTD-XML Library for very fast and efficient XPath processing. The camel-vtdxml library is provided by the Camel Extra project which hosts all *GPL related components for Camel.
Using
The VTD-XML is implemented as a Camel Language which allows you to easily use it in the Camel routes.
This component is particular efficient for splitting files or other big payloads.
For example to split a big file containing many persons, you could do:
from("file:inbox") .split().language("vtdxpath", "/persons/person").streaming() .to("activemq:queue:person") .end()
This will run the Splitter in streaming mode using the vtdxml language.
There is a builder class org.apache.camel.component.vtdxml.VtdXmlXPathBuilder
which you can use from Java code to execute xpath expressions/predicates using the vtd-xml library.