Details
Description
If a sub-item also contains the default namespace definition the splitter will duplicate it.
route definition
from("file:target/pair?initialDelay=0&delay=10") // split the order child tags, and inherit namespaces from the orders root tag .split().tokenizeXML("order", "orders") .to("mock:split");
input
<orders xmlns="http:acme.com"> <order xmlns="http:acme.com" id="1">Camel in Action</order> <order id="2">ActiveMQ in Action</order> <order id="3">DSL in Action</order> </orders>"
output[1]
<order xmlns="http:acme.com" id="1" xmlns="http:acme.com">Camel in Action</order>
expected[1]
<order xmlns="http:acme.com" id="1">Camel in Action</order>