Opened 6 years ago
#12658 new Bugs
Lack of check for matching end tag in read_xml.
Reported by: | jakjas | Owned by: | Sebastian Redl |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost 1.62.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
simple piece of code to reproduce described problem