title: XML to CSV using c# without using xslt
body: <p>I have been searching all over the web, i'm assuming some one has to have needed this before me and done it better, for an xml to csv converter.  I have a very standard xml below:</p>
  
  <pre><code>&lt;ArrayOfDealer xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;Dealer&gt;
          &lt;Cmf&gt;76066699&lt;/Cmf&gt;
          &lt;DealerNumber/&gt;
          &lt;DealershipName&gt;BROWARD MOTORSPORTS - WPB&lt;/DealershipName&gt;
      &lt;/Dealer&gt;
      &lt;Dealer&gt;
          &lt;Cmf&gt;76071027&lt;/Cmf&gt;
          &lt;DealerNumber/&gt;
          &lt;DealershipName&gt;BROWARD MOTORSPORTS OF FT LAUDERDALE LLC&lt;/DealershipName&gt;
      &lt;/Dealer&gt;
      &lt;Dealer&gt;
          &lt;Cmf&gt;76014750&lt;/Cmf&gt;
          &lt;DealerNumber/&gt;
          &lt;DealershipName&gt;Jet Ski of Miami&lt;/DealershipName&gt;
      &lt;/Dealer&gt;
      &lt;Dealer&gt;
          &lt;Cmf&gt;76066987&lt;/Cmf&gt;
          &lt;DealerNumber/&gt;
          &lt;DealershipName&gt;BROWARD MOTORSPORTS - Davie&lt;/DealershipName&gt;
      &lt;/Dealer&gt;
  &lt;/ArrayOfDealer&gt;
  </code></pre>
  
  <p>And I would like to parse this to something like</p>
  
  <pre><code>cmf      dealernumber    dealershipname
  76066699                 BROWARD MOTORSPORTS - WPB
  76014750                 Jet Ski of Miami
  76066987                 BROWARD MOTORSPORTS - Davie
  </code></pre>
  
  <p>XML is coming in from an api which I have stored as a string.</p>
  
  <p>Thoughts? </p>
  
  <p>Edit: To clarify, I know the structure will be like the above, with no further nesting of nodes, but the actual tag names can very.</p>