Search code examples
apache-camel

How can I use less than sign "<" in a string in Apache Camel?


In a camel configuration file, I define a password that contains a less-than-sign "<". Then it will fail when I startup JBoss. The escape char backslash doesn't work in this situation. How can I include this sign in a string?

<configuration xsi:type="ProviderConfiguration" ...........>
    <provider controlName="Whisky">
        <entry xsi:type=Simple" name="password" value="abcabc<ABC">
    </provider>
</configuration>

Solution

  • Thanks @TacheDeChoco. This doesn't relate to Camel but XML. replace "<" with &lt; and it works.