You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by anoordover <an...@live.nl> on 2013/07/15 18:36:03 UTC

convert empty string to null w3c document

Is it possible to convert an empty string to a null w3c document  using for
example cbr?



--
View this message in context: http://camel.465427.n5.nabble.com/convert-empty-string-to-null-w3c-document-tp5735680.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: convert empty string to null w3c document

Posted by arno noordover <ar...@noordover.net>.
I found a solution for my problem where I want to return a null object based
on the input.
I've done it using a combination of content based routing and a transform
using the simple language.
In the "simple" language I refer to a generic NullObjectFactory bean that
has a method the creates a null-object.
The code of my NullObjectFactory is:




--
View this message in context: http://camel.465427.n5.nabble.com/convert-empty-string-to-null-w3c-document-tp5735680p5735692.html
Sent from the Camel - Users mailing list archive at Nabble.com.