Hi Sowali,
I tested to make sure style='cdata' is working correctly with the
current code, even using separate input and output bindings as in
Ellecer's output binding example. I can't see any problems.
In a quick look at the Spring JibxMarshaller I did see that depending on
the form of output desired it may either generate the output directly
(as to a stream, writer, etc.) or first write the document and then
parse it again (for SAX, or for an XMLEventWriter. It's possible that
the CDATA sections may be converted into plain text if going through the
latter two-stage process (with JiBX writing the CDATA section, but the
next step converting it to plain text). The other potential issue would
be if it's writing to an XMLStreamWriter (which JiBX supports directly),
but the implementation of XMLStreamWriter used does not support CDATA
(instead just writing normal text).
I'd suggest you start by tracing the code execution to see which of the
marshalXXX() methods in JibxMarshaller is actually being used.
- Dennis
Dennis M. Sosnoski
Java SOA and Web Services Consulting <http://www.sosnoski.com/consult.html>
Axis2/CXF/Metro SOA and Web Services Training
<http://www.sosnoski.com/training.html>
Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>
On 11/21/2010 05:06 AM, nishant....@hsbcib.com wrote:
>
> Hi Ellecer,
>
> Apologies for direct contact but I am also facing exactly same issue
> as you were in below thread.
>
> http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg03972.html
>
>
> I am unable to find any solution to the problem and it is crippling
> our whole project.
>
> Could you advice if there anything I need to do to rectify the same.
>
> Any advice would be deeply appreciated.
>
> Dennis:: Could you also please comment.
>
> Thanks
> Sowali Nishant Raj
>
> *Senior Java Developer*
> *HSBC FX IT*
> *London*
>
>
>
>
>
>
>
>
> ************************************************************
> HSBC Bank plc
> Registered Office: 8 Canada Square, London E14 5HQ
> Registered in England - Number 14259
> Authorised and regulated by the Financial Services Authority
> ************************************************************
>
>
> ************************************************************
> HSBC Bank plc
> Registered Office: 8 Canada Square, London E14 5HQ
> Registered in England - Number 14259
> Authorised and regulated by the Financial Services Authority
> ************************************************************
> ----------------------------------------- SAVE PAPER - THINK BEFORE
> YOU PRINT! This transmission has been issued by a member of the HSBC
> Group "HSBC" for the information of the addressee only and should not
> be reproduced and/or distributed to any other person. Each page
> attached hereto must be read in conjunction with any disclaimer which
> forms part of it. Unless otherwise stated, this transmission is
> neither an offer nor the solicitation of an offer to sell or purchase
> any investment. Its contents are based on information obtained from
> sources believed to be reliable but HSBC makes no representation and
> accepts no responsibility or liability as to its completeness or
> accuracy.
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users