This is actually two questions in one: I am trying to build YAML to perform an XML Splitter (I was able to build one using XML DSL).
Now trying with YAML DSL. Here is YAML that I came up with using Karavan that looks / feels similar to XML DSL. - route: id: route-a6b4 from: uri: file:/work/batchsplit/in id: from-d1ca steps: - split: id: split-6d45 expression: xtokenize: id: xtokenize-460a path: //Batchmaster mode: w streaming: true steps: - to: uri: file:/work/batchsplit/out?fileName=${exchangeId}.xml id: to-1a10 It is erroring out: C:\work\batchsplit>camel run batchsplitversion1.camel.yaml 2023-02-28 13:25:15.565 INFO 5972 --- [ main] org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.2 is starting 2023-02-28 13:25:15.860 INFO 5972 --- [ main] org.apache.camel.main.MainSupport : Using Java 19.0.1 with PID 5972. Started by csanghavi in C:\work\batchsplit 2023-02-28 13:25:15.873 INFO 5972 --- [ main] mel.cli.connector.LocalCliConnector : Camel CLI enabled (local) Unsupported field: path in file:batchsplitversion1.camel.yaml, line 12, column 23: path: "//Batchmaster" ^ at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.handleUnknownProperty(YamlDeserializerBase.java:132) at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.setProperties(YamlDeserializerBase.java:126) at org.apache.camel.dsl.yaml.common.YamlDeserializerBase.construct(YamlDeserializerBase.java:65) a) what would be the right way to provide xpath for splitting to xtokenize. b) how to provide that using Karavan (Screenshot attached). Info: Karavan running within Visual Studio Code on Windows. Route running under Jbang 3.20.2 on Windows. Regards, ચિરાગ/चिराग/Chirag ------------------------------------------ Sent from My Gmail Account