Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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:

Code Block
    from("file:inbox")
      .split().vtdxml("/persons/person").streaming()
        .to("activemq:queue:person")
      .end()

And in XML DSL

Code Block
xml
xml
<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.

Include Page
Endpoint See Also
Endpoint See Also