https://bz.apache.org/bugzilla/show_bug.cgi?id=63436
--- Comment #6 from Stefan Bodewig <bode...@apache.org> --- I performed some experiments and writeCharacters by itself takes care of replacing ampersands and friends, so encoding ourselves is hurting rather than helping. IMHO we should only deal with the characters illegal in XML (see bug #65030 ) and leave the rest of the input alone. And of course, if there are additional problems, we should solve them. -- You are receiving this mail because: You are the assignee for the bug.