title: Convert XML file to csv file format in c#
body: <p>I am using accord.net mouse gesture recognition sample application, which saves the file in above xml format. I need help to convert above xml in to CSV format so i can do machine learning using accord.net Dynamic time warping. I can not figure out how to convert in to csv file.</p>
  <p>For example: 261,210,261,214,261,229,261,231</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;ArrayOfSequence xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    &lt;Sequence&gt;
      
      &lt;SourcePath&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;210&lt;/Y&gt;
        &lt;/Point&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;214&lt;/Y&gt;
        &lt;/Point&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;227&lt;/Y&gt;
        &lt;/Point&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;229&lt;/Y&gt;
        &lt;/Point&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;231&lt;/Y&gt;
        &lt;/Point&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;234&lt;/Y&gt;
        &lt;/Point&gt;
        &lt;Point&gt;
          &lt;X&gt;261&lt;/X&gt;
          &lt;Y&gt;237&lt;/Y&gt;
        &lt;/Point&gt;
  &lt;/Sequence&gt;
  &lt;/ArrayOfSequence&gt;
  </code></pre>