camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject [DISCUSS] - XML DSL and trimming value
Date Sun, 20 May 2012 10:33:57 GMT

We have a number of JIRA tickets which is related

When you use the XML DSLs you may have a coding style where you have
newlines, and spaces etc. in the text of the XML tags, eg


Notice how we have new lines in the <simple> text.
Below shows what the intent is without newlines:


Today we will auto trim Simple expressions (but not the others). IMHO
I think this is wrong and we should make this consistent, to either
- no auto trim
- auto trim all expressions

If we auto trim, and you want an explicit newline, then the end user
can use a \n to indicate newline, eg

I think we should go for a
- auto trim all expressions
- end users can use \n to force new lines

Any thoughts?

Claus Ibsen
CamelOne 2012 Conference, May 15-16, 2012:
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message