org.apache.tools.ant.util.DOMElementWriter has the proper encode method,
but it doesn't use it for writing CDATA sections. It uses a method
called encodedata, which drops illegal characters, but does not encode
the data. I think that reusing the encode method to encode CDATA
sections would work just fine. The encodedata method could then be
removed. Thoughts?
Stefan Bodewig wrote:
On Mon, 13 Jan 2003, Steve Prentice <[EMAIL PROTECTED]> wrote:
This is occuring because my build output contains <!CDATA[[ ]]>
sections that are not being escaped (encoded) before being added to
the log document.
Should be fixed. What would be the proper escaping encoding here,
would replacing the ] characters with ] be enough?
Stefan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>