Also, I tested replacing the call to encodedata with encode and it produces valid XML as well. However, I am not sure if there are any adverse effects.
-Steve
Steve Prentice wrote:
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?
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
