https://bz.apache.org/bugzilla/show_bug.cgi?id=63436

--- Comment #5 from Stefan Bodewig <bode...@apache.org> ---
We are using DOMElementWriter.encode and add XMLStreamWriter.writCharacters on
top of it, which may lead to double-escaped & characters as the code currently
stands. If I read the code correctly encode will turn a < into &lt; and
writeCharacters will turn that into &amp;lt; - will have to check.

Simply using CDATA instead of writeCharacters will not help as you need to make
sure the characters you write do not contain the sequence ]]>. 

Michael can you give us an example of something that went wring with the
existing code? I believe we should not invoke encode but leave that job to
writeCharacters but we do need to strip out characters illegal in XML - see bug
65030.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to