Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>3 different solutions 1), 2) 3), here below :</p> <p>1) Following post is a the description of your solution Loresh :</p> <p><a href="http://anna-safronova.livejournal.com/2524.html?thread=9180" rel="nofollow noreferrer">http://anna-safronova.livejournal.com/2524.html?thread=9180</a></p> <p>This is still missing limitations details.</p> <ul> <li><p>With embeeded html, we need a <code>&lt;![CDATA</code> block</p></li> <li><p>JAXB's dependancy</p></li> </ul> <p>com.sun.xml.bind.marshaller.CharacterEscapeHandler</p> <p>Needs import jaxb-impl for compilation / and may be required for excution, e.g. </p> <pre><code>&lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt; &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt; &lt;version&gt;2.2.4&lt;/version&gt; </code></pre> <ul> <li>Limitation : this solution is Container-specific and may not run because of class-loading policy.</li> </ul> <p>2) Another similar approach is JDK's rt.jar dependancy</p> <p>com.sun.xml.internal.bind.CharacterEscapeHandler</p> <p><a href="http://theopentutorials.com/tutorials/java/jaxb/jaxb-marshalling-and-unmarshalling-cdata-block/" rel="nofollow noreferrer">http://theopentutorials.com/tutorials/java/jaxb/jaxb-marshalling-and-unmarshalling-cdata-block/</a></p> <p>Same limitation / dependends on target JDK, and some tweaks on Eclipse/Maven are necessary (bad alternative / My opinion)</p> <p>3) Finally, the best solution was found on another post of Reg Whitton :</p> <p><a href="https://stackoverflow.com/a/12637295/560410">https://stackoverflow.com/a/12637295/560410</a></p> <p>and this is the detailed reciepe :</p> <p><a href="http://javacoalface.blogspot.co.uk/2012/09/outputting-cdata-sections-with-jaxb.html" rel="nofollow noreferrer">http://javacoalface.blogspot.co.uk/2012/09/outputting-cdata-sections-with-jaxb.html</a></p> <p>Worked perfect for me !</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload