Hello guys the following XML DSL prints:
2003-05-24 16:06:35,496 INFO [Im Logging WHEN] 2003-05-24 16:06:35,496 INFO [Im Logging OTHERWISE] <split id="split1"></code> <simple>${body.list}</simple></code> <when></code> <simple>'text' != ${in.header.text}</simple></code> <camel:to uri="log:Im Logging WHEN" /></code> </when></code> <camel:otherwise></code> <camel:to uri="log:Im Logging OTHERWISE" /></code> </camel:otherwise></code> </split></code> The statement above is missing the <choice> element. The XML DSL bellow works properly: <split id="split2"> <simple>${body.list}</simple> *<choice>* <when> <simple>'text' != ${in.header.text}</simple> <camel:to uri="log:Im Logging WHEN" /> </when> <camel:otherwise> <camel:to uri="log:Im Logging OTHERWISE" /> </camel:otherwise> *</choice>* </split> Why /split1/ DSL does not raise an error instead of execute the two logs endpoints. -- View this message in context: http://camel.465427.n5.nabble.com/XML-DSL-ignores-a-missing-choice-element-tp5733136.html Sent from the Camel - Users mailing list archive at Nabble.com.