camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RudyVonWald <>
Subject camel-xmljson
Date Thu, 23 Jun 2016 21:13:25 GMT
I have an issue where I am using xmljson in a Camel route. 
I have some XML input where sometimes the content can contain multiple
elements but can also just contain a single element.

    <Country OU="CA">


<Country OU="CA">

xmljson converts this to JSON fine, but give two different results depending
on how many elements are there.



So my question is, is there a "force-array" setting of some kind or
alternate approach where the results of the transformation will result in a
single element array for a chosen element?


I need the output to be consistent for the DocumentType level.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message