camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <>
Subject camel-xmljson data format submitted (CAMEL-4930)
Date Tue, 03 Apr 2012 15:48:05 GMT
Hi everyone,

I've just submitted the camel-xmljson data format for inclusion in Apache.
Please see patch on

This data format utilises the json-lib library (, and more particularly its XMLSerializer,
to support *direct* conversions from JSON to XML and viceversa. I believe
this capability was missing in Camel, since the former route to achieve
this was JSON -> Java objects -> XML. With this data format, the middle
step is dropped, so hopefully this transformation will be more efficient
overall ;)

I've found this component to be extremely useful in conjunction with
MongoDB (camel-mongodb) and any other JSON-based databases or technologies.

Many aspects of the XML -> JSON -> XML transformation can be customised, so
I have exposed most (if not all) the options that Json-lib offers as
options in this data format, both in the Spring DSL and the Java DSL. I
haven't had the chance to add Blueprint nor Scala support.

Hope the Camel riders enjoy it! Let me know if something needs to be


*Raúl Kripalani*
Principal Consultant | FuseSource Corp. | <> skype:
raul.fuse | twitter: @raulvk <>,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message