Boost C++ Libraries: Ticket #12658: Lack of check for matching end tag in read_xml. https://svn.boost.org/trac10/ticket/12658 <p> When using boost::property_tree::read_xml and parsing for example: </p> <pre class="wiki">&lt;Element&gt;Item&lt;/Whatever&gt; </pre><p> function will not throw an exception and input will be parsed into xml which look like this: </p> <pre class="wiki">&lt;Element&gt;Item&lt;/Element&gt; </pre><p> There is no checking if end tag match start tag. End Tag like this: &lt;/&gt; is enough no matter what start tag you have. </p> <p> Is it a bug or maybe it is intentional? This behaviour is present at least from version 1.53 but probably from the begining of property_tree component. </p> <p> example cpp file attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12658 Trac 1.4.3 jakjas <jak.jaskiewicz@…> Wed, 07 Dec 2016 21:04:59 GMT attachment set https://svn.boost.org/trac10/ticket/12658 https://svn.boost.org/trac10/ticket/12658 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">example.cpp</span> </li> </ul> <p> simple piece of code to reproduce described problem </p> Ticket