Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.20.2
-
None
-
Unknown
Description
This scenario works with XML DSL
Here is XML DSL
<?xml version="1.0" encoding="UTF-8"?> <!-- camel-k: language=xml --><routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://camel.apache.org/schema/spring" xsi:schemaLocation=" http://camel.apache.org/schema/spring https://camel.apache.org/schema/spring/camel-spring.xsd"> <!-- Write your routes here, for example: --> <route> <from uri="file:///c://work//batchsplit//in"/> <split streaming="true"> <xtokenize mode="w">//BatchMaster</xtokenize> <to uri="file:///c://work//batchsplit//out?fileName=${exchangeId}.xml"/> </split> </route></routes>
Here is Yaml version that I tried:
- route: id: route-a6b4 from: uri: file:/work/batchsplit/in id: from-d1ca steps: - split: id: split-6d45 expression: //Batchmaster xtokenize: id: xtokenize-460a mode: w streaming: true steps: - to: uri: file:/work/batchsplit/out?fileName=${exchangeId}.xml id: to-1a10
I have tried to run this thru camel-jbang.