summaryrefslogtreecommitdiffhomepage
path: root/xml.cpp
blob: d4e71623fb6c6e7d94d12a68031f6dbd9d8e4d2d (plain)
1
2
3
4
5
6
7
8
9
#include "xml.h"

#include <boost/property_tree/xml_parser.hpp>

std::string Reichwein::XML::plain_xml(const boost::property_tree::ptree& ptree) {
 std::ostringstream oss;
 boost::property_tree::xml_parser::write_xml_element(oss, {}, ptree, -1, boost::property_tree::xml_writer_settings<boost::property_tree::ptree::key_type>{});
 return oss.str();
}