-
Bug
-
Resolution: Done
-
Minor
-
7.1.0
-
None
If a route contains a <log message=">>> this is a message with arrows in it"/> will throw an "invalid character in attribute" exception. Replacing it with > fixes the issue, but technically I think the XML is correct and it does work fine that way in plain Camel.
For example: if you open the project https://github.com/FuseByExample/camel-persistence-part2 and want to visualize the camel route ./route-one-tx-manager/src/main/resources/META-INF/spring/camelContext.xml it produces an error dialog and the following log entry:
Failed to load Camel mode: de.pdark.decentxml.XMLParseException: Line 68, column 31: Illegal character in attribute value: '>'
Line 68: <log message=">>> Incident created in queue : ${body}"/>
The W3C recommandation (http://www.w3.org/TR/REC-xml/#d0e888) states that an attribute value exists of:
AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"