On 14/07/11 12:35, Jörn Kottmann wrote:
> On 7/13/11 5:10 PM, Thilo Götz wrote:
>> If I recall correctly, you can tell the serializer to
>> replace illegal characters with the Unicode replacement
>> char without complaining.  Would that be an option?
> 
> Do you know how to do that?
> 
> I found some documentation from you about this issue:
> http://uima.apache.org/d/uimaj-2.3.1/tutorials_and_users_guides.html#ugr.tug.xmi_emf.xml_character_issues
> 
> 
> There you suggest to use XMLUtils.checkForNonXmlCharacters which can locate
> non-xml characters in a String.
> Based on that information I could make a method to replace or remove them.
> 
> But it would be easier if I can just set a flag on some serializer to do this
> for me.
> 
> Jörn

Hm, I have no more information than this.  I guess we decided
not to implement a switch at that time :-(  The serialization
methods have so many overloads already, maybe we felt this was
getting too much.

--Thilo

Reply via email to