Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Where stax is a static method on org.apache.camel.component.stax.StAXBuilder which you can static import in the Java code. The stax builder is by default namespace aware on the XMLReader it uses. From Camel 2.11.1 onwards you can turn this off by setting the boolean parameter to false, as shown below:

Code Block
java
java

from("file:target/in")
    .split(stax(Record.class, false)).streaming()
        .to("mock:records");

The previous example with XML DSL

...