denis queffeulou wrote:
> Hi all,
>
> I have to serialize a String into a String with entities like :
>
> ' " < > & => ' "e; & < >
>
> 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; instead of &
> 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.
--
Thomas Jones-Low Softstart Services Inc.
[EMAIL PROTECTED] JobScheduler for Oracle
Ph: 802-398-1012 http://www.softstart.com
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users