THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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 | ||||
---|---|---|---|---|
| ||||
from("file:target/in")
.split(stax(Record.class, false)).streaming()
.to("mock:records");
|
The previous example with XML DSL
...