Aurélien Pupier created CAMEL-21092:
---------------------------------------

             Summary: 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


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