title: Serialize to XML using boost::serialization
body: <p>This is a newbie question. I am trying to serialize some objects to XML, but the resulting XML contains a boost serialization signature, version information, class id, ...etc. that I do not need. Is there a way to get rid of them without post-processing the xml message?</p>
  
  <pre><code>#include &lt;fstream&gt;
  #include &lt;iostream&gt;
  #include &lt;boost/archive/xml_iarchive.hpp&gt;
  #include &lt;boost/archive/xml_oarchive.hpp&gt;
  
  using namespace std;
  
  class Test {
  private:    
      friend class boost::serialization::access;
      template&lt;class Archive&gt; void serialize(Archive &amp; ar,
              const unsigned int version) {
          ar &amp; BOOST_SERIALIZATION_NVP(a);
          ar &amp; BOOST_SERIALIZATION_NVP(b);
          ar &amp; BOOST_SERIALIZATION_NVP(c);
      }
  
      int a;
      int b;
      float c;
  public:
      inline Test(int a, int b, float c) {
          this-&gt;a = a;
          this-&gt;b = b;
          this-&gt;c = c;
      }
  };
  
  int main() {
      std::ofstream ofs("filename.xml");
  
      Test* test = new Test(1, 2, 3.3);
  
      boost::archive::xml_oarchive oa(ofs);
      oa &lt;&lt; BOOST_SERIALIZATION_NVP(test);
  
      return 0;
  }
  </code></pre>
  
  <p>results in:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&gt; 
    &lt;!DOCTYPE boost_serialization (View Source for full doctype...)&gt; 
    &lt;boost_serialization signature="serialization::archive" version="6"&gt;
    &lt;test class_id="0" tracking_level="1" version="0" object_id="_0"&gt;
      &lt;a&gt;1&lt;/a&gt; 
      &lt;b&gt;2&lt;/b&gt; 
      &lt;c&gt;3.3&lt;/c&gt; 
    &lt;/test&gt;
    &lt;/boost_serialization&gt;
  </code></pre>
  
  <p>I'll be serializing these messages to strings, though, and sending them to systems that expect a message to look like this.</p>
  
  <pre><code>  &lt;test&gt;
      &lt;a&gt;1&lt;/a&gt;
      &lt;b&gt;2&lt;/b&gt; 
      &lt;c&gt;3.3&lt;/c&gt; 
    &lt;/test&gt;
  </code></pre>
  
  <p>Is there a way to serialize xml without the signature?</p>