title: Printing the xml generated by the boost property tree
body: <p>I tested <code>boost::property_tree</code> and it was good: I can load an XML, extract the elements, save the XML, etc. But, is it possible to generate an XML and print it? I don't want to save it.</p>
  
  <pre><code>void debug_settings::load(const std::string &amp;filename) {
      using boost::property_tree::ptree;
      ptree pt;
      read_xml(filename, pt);
      m_file = pt.get&lt;std::string&gt;("debug.filename");
      m_level = pt.get("debug.level", 0);
      BOOST_FOREACH(ptree::value_type &amp;v, pt.get_child("debug.modules"))m_modules.insert(v.second.data());
  
  }
  
  void debug_settings::save(const std::string &amp;filename) {
      using boost::property_tree::ptree;
      ptree pt;
      pt.put("debug.filename", m_file);
      pt.put("debug.level", m_level);
      BOOST_FOREACH(const std::string &amp;name, m_modules)pt.add("debug.modules.module", name);
      write_xml(filename, pt);
  
  }
  </code></pre>
  
  <p>This is the function I use to load and save the XML. Do we have any method to display it?</p>