title: Xml to Text Convert
body: <p>I would like to write something in C# that takes Xml and converts it to plain text. </p>
  
  <pre><code>&lt;note&gt;
      &lt;to&gt;Tove&lt;/to&gt;
      &lt;from&gt;Jani&lt;/from&gt;
      &lt;heading&gt;Reminder&lt;/heading&gt;
      &lt;body&gt;Don't forget me this weekend!&lt;/body&gt;
  &lt;/note&gt;
  </code></pre>
  
  <p>Would become:</p>
  
  <pre><code>To Tove
  From Jani
  Heading Reminder
  Body don't forget me this weekend!
  </code></pre>
  
  <p>Is there any thing already like this? and how would i go about doing this?</p>
  
  <p>This is just ruffly the idea im going for still needs lots of work:</p>
  
  <pre><code>private void dataGridViewResult_SelectionChanged(object sender, EventArgs e)
          {
              if (this.dataGridViewResult.SelectedRows.Count &gt; 0)
              {
                  XslCompiledTransform xslt = new XslCompiledTransform();
                  xslt.Load("SQL"); //.xml
  
                  xslt.Transform("SQL","SQL"); //.xml, .html
                  this.richTextBoxSQL.Text = this.dataGridViewResult.SelectedRows[0].Cells["SQL"].Value.ToString();
              }
          }
  </code></pre>