I've tried what you suggested, just marshalling the string without
escaping it. The resulting text is the same as the orginal, St.
J�R�Me. Here is the code I'm using to marshall:
org.jibx.runtime.IBindingFactory bf =
org.jibx.runtime.BindingDirectory.getFactory("GeoResponse_binding",
com.tbook.xml.response.GeoResponse.class);
org.jibx.runtime.IMarshallingContext mctx = bf.createMarshallingContext();
mctx.setIndent(0);
java.io.StringWriter writer = new java.io.StringWriter();
mctx.marshalDocument(geoResponse, "ISO-8859-1", null, writer);
The resulting xml is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<GeoResponse>
<Continent>
<Country>
<City>
<Name>St. J�R�Me</Name>
</City>
</Country>
</Continent>
</GeoResponse>
I believe I'm using JiBX vesion beta3b, but I'm not certain. I can
supply you with a test class if needed that produces the results.
Thanks.
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users