[Boost-bugs] [Boost C++ Libraries] #10240: Start tags in XML files are not checked

Subject: [Boost-bugs] [Boost C++ Libraries] #10240: Start tags in XML files are not checked
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-24 14:25:36


#10240: Start tags in XML files are not checked
------------------------------+---------------------------
 Reporter: staehr@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 The exception
 boost::archive::xml_archive_exception::xml_archive_tag_mismatch is only
 thrown when end tag is wrong, start tag may be anything.

 See attached example:
 {{{
 <seriobject class_id="0" tracking_level="0" version="0">
         <mem>12</mem>
 </seriobject>
 }}}
 is desired,
 {{{
 <mem>12</faulty>
 }}}
 is wrong and noticed as invalid, but
 {{{
 <faulty>12</mem>
 }}}
 is valid, should be invalid, too.

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10240>
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:16 UTC