[Boost-bugs] [Boost C++ Libraries] #9521: Exception when passing buffer to read_xml()

Subject: [Boost-bugs] [Boost C++ Libraries] #9521: Exception when passing buffer to read_xml()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-24 05:05:03


#9521: Exception when passing buffer to read_xml()
------------------------------+---------------------------
 Reporter: Hitesh Saxena | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 Hi,
 I have taken reference from https://svn.boost.org/trac/boost/ticket/3831

 I have made changes for read_xml(), now I am getting below exception
 "ex.what():: <unspecified file>(1): expected <"

 code:

 string fileDataStr ((const char*)xmlFileBuffer);
 boost::property_tree::ptree pt;
 std::stringstream ss;
 ss<<fileDataStr;
 boost::property_tree::read_xml( ss, tree );

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