...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(const std::string & filename, Ptree & pt, int flags = 0, const std::locale & loc = std::locale());
Reads XML from a file using the given locale 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. |