...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::property_tree::xml_parser::read_xml
// In header: <boost/property_tree/xml_parser.hpp> template<typename Ptree> void read_xml(std::basic_istream< typename Ptree::key_type::value_type > & stream, Ptree & pt, int flags = 0);
Reads XML from an input stream and translates it to property tree.
Note | |
---|---|
Clears existing contents of property tree. In case of error the property tree unmodified. |
Note | |
---|---|
XML attributes are placed under keys named |
Parameters: |
|
||||||
Throws: |
xml_parser_error In case of error deserializing the property tree. |