Re: [Boost-bugs] [Boost C++ Libraries] #7303: XML Serialization - Skip/Ignore unexpected data.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7303: XML Serialization - Skip/Ignore unexpected data.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-19 12:51:23


#7303: XML Serialization - Skip/Ignore unexpected data.
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: ramey
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.51.0 | Severity: Not Applicable
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by anonymous):

 Replying to [comment:9 Ramki T]:
> Hi,
> I require forward compatibility in boost's xml serialization. So what
 is the status of this work? Please let me know.

 You might be better off watching
 https://svn.boost.org/trac/boost/ticket/8088

 In the end I converted my project to use boost::property_tree. Older
 versions of the application, written to use boost::serialization, couldn't
 load the boost::property_tree XML, but since they did't have future
 compatibility anyway, it wasn't much of a loss. However applications
 written to use boost::property_tree can easily load boost::serialization
 XML. And once you've made the jump, boost::property_tree provides better
 support for skipping extra data, and handling missing data. All-in-all it
 was a fairly painless conversion.

 There are caveats:

 * If you need object tracking then boost::property_tree is of no use to
 you. But as I noted above I couldn't work out a way to modify
 boost::serialization to support future compatibility ''and'' object
 tracking (not fully at any rate). Perhaps others are more insightful.

 * The two libraries almost certainly have different memory/performance
 characteristics but again that didn't affect my project.

 * If you need UTF-8 support you'll need to imbue your input/output stream
 before calling boost::property_tree::read_xml/write_xml. (UTF-8 support
 isn't out-of-the-box.)

 I hope that's of some use to you.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7303#comment:10>
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:12 UTC