<div dir="ltr"><div><div>Given this XML file:<br><br>=============================<br><?xml version="1.0"?><br><item><br>    <description><br>        <![CDATA[This is a description for a test [...] and will fail]]><br>
    </description><br></item><br>=============================<br><br></div>WriteXMLFile in xmlwrite.pp throws an "Illegal character" exception on the "]" character in CDSectSpecialCharCallback. However, this behavior is incorrect. Only "]]>" marks the end of a CDATA section, any other characters, including square brackets, should be allowed.<br>
<br></div>This seems to be a regression in 2.6.2, as it works in 2.6.0. <br><div><div><br></div><div>I did find <a href="http://mantis.freepascal.org/view.php?id=20780">http://mantis.freepascal.org/view.php?id=20780</a> and <a href="http://svn.freepascal.org/cgi-bin/viewvc.cgi?revision=19792&view=revision">http://svn.freepascal.org/cgi-bin/viewvc.cgi?revision=19792&view=revision</a> which seem to be what introduced this bug.<br>
<br></div><div>I'll log a bug for it in Mantis, but I thought I'd also bring it up in this to see if there should be any discussion about it.<br><br></div><div>Thanks guys, have a good one.<br></div><div><br></div>
<div>-SG<br></div><div><br clear="all"><div><div><div><div dir="ltr">--<br>Seth Grover<br><br><span lang="grc">ΜΟΛΩΝ ΛΑΒΕ</span><br></div></div>
</div></div></div></div></div>