Hi Dennis,
Thanks a lot for taking time to answer my question.
However I am still getting the problem As even after having style="cdata"
in my binding file JIBX is escaping some characters.
Eg
Expected
<P ALIGN="left">Test String with other's and other stuff</P>
Actual Result
<P ALIGN="left">Test String with other&pos;s and other stuff</P>
I had tried following steps
Made the change manually to the generated binding file and recreated the
jar with the correct binding file.
Wrapped the text in <![CDATA[...]]> but it did not help as JIBX was
escaping even CData's < to <
Please advice how to correctly handle Cdata in this case.. Also any
pointers to example code would be greatly appreciated.
We are evaluating it to be adopted across various projects within the
organisation so it is very critical for us.
Any help would be greatly appreciated.
Thanks and Regards,
Sowali Nishant Raj
Senior Java Developer
HSBC FX IT
From:
Dennis Sosnoski <[email protected]>
To:
[email protected]
Date:
19/11/2010 00:38
Subject:
Re: [jibx-users] cdata Customization issue
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
Axis2/CXF/Metro SOA and Web Services Training
Web Services Jump-Start
On 11/11/2010 12:34 AM, [email protected] 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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
************************************************************
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users