[ 
https://issues.apache.org/jira/browse/CAMEL-21092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874254#comment-17874254
 ] 

Aurélien Pupier commented on CAMEL-21092:
-----------------------------------------

the tag camel is mentioned on the xml io page 
https://camel.apache.org/components/4.4.x/others/java-xml-io-dsl.html#_example 
but there are never an xsd associated, so would be more complicated for 
end-users to leverage it.

the tag routes is also used in one example of the Camel xml io 
https://camel.apache.org/components/4.4.x/others/java-xml-io-dsl.html#_example

> Xml route generated by Camel Jbang does not respect the xsd used
> ----------------------------------------------------------------
>
>                 Key: CAMEL-21092
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21092
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.7.0
>            Reporter: Aurélien Pupier
>            Assignee: Aurélien Pupier
>            Priority: Major
>
> when using Camel JBang init to genrate an xml file, it genrates:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <camel xmlns="http://camel.apache.org/schema/spring";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="             http://camel.apache.org/schema/spring        
>      https://camel.apache.org/schema/spring/camel-spring.xsd";>
>     <route id="route-06280b52-bf6a-4459-91d1-fa081325d4a2">
>         <from uri="timer:xml?period=1000"/>
>         <setBody>
>             <simple>Hello Camel from ${routeId}</simple>
>         </setBody>
>         <log message="${body}"/>
>     </route>
> </camel>
> {noformat}
> which is giving this xsd validation:
> {noformat}
> Cvc-elt.1.a: Cannot Find The Declaration Of Element 'camel'., Line '2', 
> Column '199'.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to