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

Reply via email to