You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/02/16 09:40:00 UTC
[jira] [Commented] (CAMEL-20427) XML-IO-DSL IDE shows invalid content, but the xml is runnable
[ https://issues.apache.org/jira/browse/CAMEL-20427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17817891#comment-17817891 ]
Claus Ibsen commented on CAMEL-20427:
-------------------------------------
You need to put rest before route I think
> XML-IO-DSL IDE shows invalid content, but the xml is runnable
> -------------------------------------------------------------
>
> Key: CAMEL-20427
> URL: https://issues.apache.org/jira/browse/CAMEL-20427
> Project: Camel
> Issue Type: Bug
> Affects Versions: 4.3.0
> Reporter: Federico Mariani
> Priority: Major
>
> Given the following _working_ xml camel route:
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <camel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://camel.apache.org/schema/spring"
> xsi:schemaLocation="
> http://camel.apache.org/schema/spring
> https://camel.apache.org/schema/spring/camel-spring.xsd">
> <route id="reproducer">
> <from id="_to1" uri="direct:start"/>
> ...
> </route>
> <rest id="rest-e61e">
> <get id="get-2e2c" path="start">
> <to uri="direct:start"/>
> </get>
> </rest>
> </camel>{code}
> The IDE shows the following errors
> {code:java}
> Invalid content was found starting with element '{"http://camel.apache.org/schema/spring":rest}'. One of '{"http://camel.apache.org/schema/spring":route}' is expected.
> Invalid content was found starting with element '{"http://camel.apache.org/schema/spring":rest}'. One of '{"http://camel.apache.org/schema/spring":route}' is expected.{code}
> I do not think they are real errors, I wonder if the issue is in the xsd itself.
> The tested version of [https://camel.apache.org/schema/spring/camel-spring.xsd] is 4.3.0.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)