Subject: [Boost-bugs] [Boost C++ Libraries] #12658: Lack of check for matching end tag in read_xml.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-07 21:03:53
#12658: Lack of check for matching end tag in read_xml.
------------------------------+---------------------------
Reporter: jakjas | Owner: cornedbee
Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost 1.62.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
When using boost::property_tree::read_xml and parsing for example:
{{{
<Element>Item</Whatever>
}}}
function will not throw an exception and input will be parsed into xml
which look like this:
{{{
<Element>Item</Element>
}}}
There is no checking if end tag match start tag. End Tag like this: </> is
enough no matter what start tag you have.
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.
example cpp file attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12658> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC