Boost C++ Libraries: Ticket #10240: Start tags in XML files are not checked https://svn.boost.org/trac10/ticket/10240 <p> The exception boost::archive::xml_archive_exception::xml_archive_tag_mismatch is only thrown when end tag is wrong, start tag may be anything. </p> <p> See attached example: </p> <pre class="wiki">&lt;seriobject class_id="0" tracking_level="0" version="0"&gt; &lt;mem&gt;12&lt;/mem&gt; &lt;/seriobject&gt; </pre><p> is desired, </p> <pre class="wiki">&lt;mem&gt;12&lt;/faulty&gt; </pre><p> is wrong and noticed as invalid, but </p> <pre class="wiki">&lt;faulty&gt;12&lt;/mem&gt; </pre><p> is valid, should be invalid, too. </p> <p> Furthermore, in this special example, if you change the end tag of the root node (here: seriobject) to something else, there is also an exception missing. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10240 Trac 1.4.3 staehr@… Thu, 24 Jul 2014 14:26:37 GMT attachment set https://svn.boost.org/trac10/ticket/10240 https://svn.boost.org/trac10/ticket/10240 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">xml_check_example.cpp</span> </li> </ul> <p> Minimal example for missing boost::archive::xml_archive_exception::xml_archive_tag_mismatch </p> Ticket Robert Ramey Wed, 29 Oct 2014 15:38:44 GMT <link>https://svn.boost.org/trac10/ticket/10240#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10240#comment:1</guid> <description> <p> I believe that this happens only on the top level. I had to override the check on the top level because ... - not I forget. </p> <p> &lt;faulty&gt;12&lt;/mem&gt; is valid, should be invalid, too. </p> <p> Hmm - looks invalid to me also. </p> <p> RObert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Thu, 13 Nov 2014 16:53:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10240#comment:2 https://svn.boost.org/trac10/ticket/10240#comment:2 <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">wontfix</span> </li> </ul> Ticket staehr@… Fri, 14 Nov 2014 08:38:13 GMT <link>https://svn.boost.org/trac10/ticket/10240#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10240#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/10240#comment:1" title="Comment 1">ramey</a>: </p> <blockquote class="citation"> <p> I believe that this happens only on the top level. I had to override the check on the top level because ... - not I forget. </p> </blockquote> <p> No, not only on top level. This is documented somewhere indeed, but like you I see no reason in that. (You forgot it? Doesn’t seem to be a good reason ;-)) But nevertheless: The check fails on every level. </p> <blockquote class="citation"> <p> &lt;faulty&gt;12&lt;/mem&gt; is valid, should be invalid, too. </p> <p> Hmm - looks invalid to me also. </p> </blockquote> <p> Ok, once again: Why is this ticket set to wontfix? </p> </description> <category>Ticket</category> </item> <item> <author>staehr@…</author> <pubDate>Tue, 13 Jan 2015 09:10:37 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/10240#comment:4 https://svn.boost.org/trac10/ticket/10240#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">wontfix</span> </li> </ul> Ticket