There's currently no customization for this purpose, and considering
that it's a pretty rare requirement it's probably not worth the trouble
to add a customization. However, you should be able to use a simple XSLT
to modify the generated binding definition to use style="cdata" for that
particular field, and run the XSLT transform as part of your build
process right after the binding is generated.
- 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/11/2010 12:34 AM, nishant....@hsbcib.com wrote:
>
> Hi All,
>
> I am using Jibx with Spring oxm.
>
> I am doing Schema to Java generation and using maven jibx plugin for
> the same.
> So all my Java classes and the binding files are generated by maven
> dynamically every time.
>
> This arrangement suits us as our xsd is quite dynamic due to nature of
> the project.
>
> The problem I am having is I want to classify a field as using CDATA
> so that it is not escaped by JIBX when generating the response.
>
> After searching I found that I could use style="cdata" in the binding
> file.
> However, I can not do that as my binding file is generated when I do
> the maven build.
>
> So I was wondering if there is any customization I could apply so that
> in the generated binding file the style="cdata" in the value tag of
> the corresponding field.
>
> Please help me... Really stuck on this one...
>
> Thanks for your help and time...
>
> Regards
>
>
> ************************************************************
> 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.
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
>
>
> _______________________________________________
> 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