Hi all-

I am having a problem with the XmlLogger creating invalid XML documents. This is occuring because my build output contains <!CDATA[[ ]]> sections that are not being escaped (encoded) before being added to the log document. I noticed that in older versions of Ant (like 1.2) the text was being encoded, but this was taken out later when Ant moved to using the javax.xml.parsers.DocumentBuilder and org.w3c.dom.Document to build the XML document.

Is this a bug in Ant or should org.w3c.dom.Document.createCDATASection take care of this automatically (and therefore a bug in org.w3c.dom.Document)?

Here is an example of what happens:
<message priority="info"><![CDATA[
- << "<webresult><exception classname="junit.framework.AssertionFailedError">
<message><![CDATA[null]]></message><stacktrace><![CDATA[junit.framework.AssertionFailedError
]]></message>


Thanks,
Steve Prentice


-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to