camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: unmarshalling with CDATA in a string element
Date Thu, 10 Oct 2013 17:46:36 GMT
Maybe take a look at using @XmlValue in your JAXB beans:

http://stackoverflow.com/questions/16684040/jaxb-unmarshalling-cdata-with-html-tags


On Thu, Oct 10, 2013 at 6:13 AM, arun <arun.parihar@gmail.com> wrote:

> I have a CDATA section in a string element of an xml message which I am
> trying to un-marshal, e.g.
>
> <![CDATA [SOME CDATA]]>
>
> When utilising the JAX-B un-marshalling availible in camel via
>
>         <dataFormats>
>                 <jaxb filterNonXmlChars="true" prettyPrint="true"
> contextPath="com.my.dto"
> id="myJaxb"/>
>         </dataFormats>
>
>         <unmarshal ref="myJaxb"/>
>
>
> The output appears as character escaped e.g.:
>
> &lt;![CDATA [SOME CDATA]]&gt;
>
> Is there a way to set properties on the un-marshaller used in Camel or any
> alternative sollution that I can utilised in Camel to un-marshall my CDATA?
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/unmarshalling-with-CDATA-in-a-string-element-tp5741289.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

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