James Netherton created CAMEL-23521:
---------------------------------------

             Summary: camel-core: XML route dumping is missing target element 
closing tags
                 Key: CAMEL-23521
                 URL: https://issues.apache.org/jira/browse/CAMEL-23521
             Project: Camel
          Issue Type: Bug
            Reporter: James Netherton


Some examples of various DSL elements when they are dumped. Note the missing 
closing root element tag.

*Routes*
{code:java}
<routes xmlns="http://camel.apache.org/schema/xml-io";>
    <route id="greet">
        <from uri="direct:greet"/>
        <setBody>
            <constant>Hello World</constant>
        </setBody>
    </route>
{code}
*Rests*
{code:java}
<rests xmlns="http://camel.apache.org/schema/xml-io";>
    <rest id="greet" path="/greeting">
        <get path="/hello">
            <to uri="direct:greet"/>
        </get>
    </rest>
{code}
*Rotue Templates*
{code:java}
<routeTemplates xmlns="http://camel.apache.org/schema/xml-io";>
    <routeTemplate id="myTemplate">
        <templateParameter name="name"/>
        <templateParameter name="greeting"/>
        <route>
            <from uri="direct:template"/>
            <setBody>
                <simple>{{greeting}} ${body}</simple>
            </setBody>
        </route>
    </routeTemplate>
{code}
 



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

Reply via email to