summaryrefslogtreecommitdiffhomepage
path: root/xml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xml.cpp')
-rw-r--r--xml.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/xml.cpp b/xml.cpp
new file mode 100644
index 0000000..d4e7162
--- /dev/null
+++ b/xml.cpp
@@ -0,0 +1,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();
+}