...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::write_xml
// In header: <boost/property_tree/xml_parser.hpp> template<typename Ptree> void write_xml(const std::string & filename, const Ptree & pt, const std::locale & loc = std::locale(), const xml_writer_settings< typename Ptree::key_type > & settings = xml_writer_settings< typename Ptree::key_type >());
Translates the property tree to XML and writes it the given file.
Parameters: |
|
||||||||
Throws: |
xml_parser_error In case of error translating the property tree to XML or writing to the output stream. |