Boost C++ Libraries: Ticket #3636: make XML output of test report XML-compliant https://svn.boost.org/trac10/ticket/3636 <p> I have a suggestion for the XML output generated by the boost unit test framework: currently, if tests fail, the message detailing the failure of the test is put in verbatim as a test element into the XML output. This can be problematic, if the output contains XML-like structures, like text that looks like an XML element, or invalid characters. </p> <p> thus, I'd suggest enclosing such output in a CDATA section, that would ensure that the generated XML file is indeed always well formed XML. see more here: <a class="ext-link" href="http://www.w3.org/TR/REC-xml/#sec-cdata-sect"><span class="icon">​</span>http://www.w3.org/TR/REC-xml/#sec-cdata-sect</a> - but basically this would mean printing the failures like this: </p> <pre class="wiki">&lt;![CDATA[ reason of the failure... ]]&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3636 Trac 1.4.3 Gennadiy Rozental Mon, 23 Nov 2009 03:01:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3636#comment:1 https://svn.boost.org/trac10/ticket/3636#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57854" title="Use CData to print error message. Fixes #3636">[57854]</a>) Use CData to print error message. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3636" title="#3636: Feature Requests: make XML output of test report XML-compliant (closed: fixed)">#3636</a> </p> Ticket Ákos Maróy <akos@…> Mon, 23 Nov 2009 07:27:26 GMT <link>https://svn.boost.org/trac10/ticket/3636#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3636#comment:2</guid> <description> <p> excellent - thank you! </p> </description> <category>Ticket</category> </item> </channel> </rss>