Exception: org.xml.sax.SAXParseException
The reference to entity "..." must end with the ';' delimiter
...
.
In the URIs used for specifying Camel endpoints, the & is used to separate the parameters. However, & also is a reserved character in XML.
Because of this, you have to replace all & in your URIs by & when When using the Spring XML syntax for declaring routes, you have to use &to configure Camel routes.
An example: this snippet of code in the DSL...
Code Block | ||||
---|---|---|---|---|
| ||||
from("timer://myTimer?fixedRate=true&delay=0&period=2000")
|
...matches this example in the Spring XML syntax
Code Block | ||||
---|---|---|---|---|
| ||||
<from>timer://myTimer?fixedRate=true&delay=0&period=2000</from>
|