title: Serialize Dictionary(string, List<string>) into xml
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1799767/easy-way-to-convert-a-dictionarystring-string-to-xml-and-visa-versa">Easy way to convert a Dictionary&lt;string, string&gt; to xml and visa versa</a>  </p>
  </blockquote>
  
  
  
  <p>I have sample class:</p>
  
  <pre><code>public class SampleClass
  {
     public Dictionary&lt;string, List&lt;string&gt;&gt; SampleProperties {get;set;}
  }
  </code></pre>
  
  <p>I want serialize this class to xml.
  How I can do this?
  I want output xml similar to this example:</p>
  
  <pre><code>&lt;DataItem&gt;
     &lt;key&gt;
        &lt;value&gt;&lt;/value&gt;
        &lt;value&gt;&lt;/value&gt;
        &lt;value&gt;&lt;/value&gt;
     &lt;/key&gt;
  &lt;/DataItem&gt;
  </code></pre>
  
  <p>Regards</p>