[
https://issues.apache.org/jira/browse/CAMEL-16664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354920#comment-17354920
]
Claus Ibsen commented on CAMEL-16664:
-------------------------------------
You can now avoid the namespace, and also we support single route mode too
{code}
-<routes xmlns="http://camel.apache.org/schema/spring">
- <route>
- <from uri="timer:xml?period=5s"/>
- <log message="I am XML"/>
- </route>
-</routes>
\ No newline at end of file
+<route>
+ <from uri="timer:xml?period=5s"/>
+ <log message="I am XML"/>
+</route>
{code}
> camel-core - XML routes loader allow to not have root namespace defined
> -----------------------------------------------------------------------
>
> Key: CAMEL-16664
> URL: https://issues.apache.org/jira/browse/CAMEL-16664
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.11.0
>
>
> We need the spring namespace at
> https://github.com/apache/camel-examples/blob/main/examples/routeloader/src/main/resources/myroutes/cheese-route.xml#L20
> Since this is controlled by our routes loader, we can look at inferring the
> root namespace automatic if not in the xml code.
> This would make writing xml snippets a bit easier.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)