Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository:

How do I use URIs with parameters in XML?

If you try and use one of the Camel URIs in an Xml Configuration using the URI query parameter notation, such as

 <from uri="direct:start?paramA=1&paramB=2"/>
 <to uri="mock:result"/>

you might get errors such as...

Caused by: org.xml.sax.SAXParseException: The reference to entity
"paramB" must end with the ';' delimiter.

This is because in XML you need to escape some special XML characters like these

Special Character

How to escape it in XML


So if you write the following XML it should work...

 <from uri="direct:start?paramA=1&amp;paramB=2"/>
 <to uri="mock:result"/>
© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram