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.

  • No labels