Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

VTD-XML

Available as of Camel 2.10

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().vtdxml("/persons/person").streaming()
        .to("activemq:queue:person")
      .end()

And in XML DSL

<route>
   <from uri="file:inbox"/>
   <split streaming="true">
     <vtdxml>/persons/person</vtdxml>
     <to uri="activemq:queue:person"/>
   </split>
</route>

This will run the Splitter in streaming mode using the vtdxml language.

© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram