#include #include #include #include #include int main() { std::string input_text = "Item"; std::stringstream input_stream; std::stringstream output_stream; input_stream << input_text; boost::property_tree::ptree xml; boost::property_tree::read_xml(input_stream, xml); boost::property_tree::write_xml(output_stream, xml); std::cout << "Input:" << std::endl; std::cout << input_text << std::endl << std::endl; std::cout << "Parsed:" << std::endl; std::cout << output_stream.str() << std::endl; return 0; }