Thanks for reply,

actually I can't use CDATA.

So I can treat entities into a  ICharacterEscaper implementation, that 
seems good,
but how can I tell Jibx to use my ICharacterEscaper implementation ?
I don't find the proper attribute in binding.

>denis queffeulou wrote:
>  
>
>>Hi all,
>>
>>I have to serialize a String into a String with entities like :
>>
>>' " < > &  => &apos; &quote; &amp; &lt; &gt;
>>
>>and some other characters.
>>
>>I don't know how to do this because Jibx transforms some characters into 
>>entities but not all.
>>If I creates entities before Jbix, then I get &amp;amp; instead of &amp;
>>I tried to use a format function but Jibx re-encode the char to 
>>entities, so I get double encoding.
>>
>>How can I control the entity transformation (IMarshaller, 
>>ICharacterEscaper...) ?
>>
>>Thanks,
>>
>>    
>>
>
>       The proper way is to put the string into a CDATA section. There is a 
>write CDATA method.
>
>       You can try what tried at one point, and Kees de Kooter also did, which 
>was to implement an ICharacterEscaper class to write the literal string 
>to the output stream.
>
>  
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to