JiBX will automatically escape output text to obey the rules of XML and the particular encoding being used. There are some differences in how escaping works for XML vs. HTML, but in this case the results are the same so you can just use the string directly in its original form. JiBX does not provide any direct way of writing text without going through the appropriate escape handling, since it tries to make sure the result is always going to obey the XML rules. If you really want to bypass this handling you can do so in a custom marshaller by getting the XmlWriter instance from the MarshallingContext and using the writeMarkup method on that; I really recommend against doing this, though.

 - Dennis

Chad Boyd wrote:

I've got a string (St. J�R�Me) that needs to be HTML escaped.  After
escaping it (St. JéRôMe) I then marshall the object that
contains this escaped string through JiBX.  After doing so, the value
is St. JéRôMe.  As you can see, JiBX has re-encoded
it.  It encoded the "&" into "&".  How can I prevend JiBX from
doing this?



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to