title: how to parse a Xml text in C#?
body: <p>I have this code in Hml</p>
  
  <p>and a i need to print this in a column: 
          html
          body
          font
          color=blue
          size=3
          input
          type=text 
          name=name
          maxlength=8
          br
          font
          size=2</p>
  
  <p>Reading others questions here i made this:</p>
  
  <pre><code>    var doc = XDocument.Parse("&lt;html&gt;&lt;body&gt;&lt;font color='blue' size='3'&gt;
      Enter your name&lt;/font&gt;&lt;input type='text' name='name' maxlength='8'/&gt;
      &lt;br/&gt;&lt;font size='2'&gt;Maximum 8 characters&lt;/font&gt;&lt;/body&gt;&lt;/html&gt;");
  
      foreach (var item in doc.Descendants().Select(n =&gt; n.Name))
      {
          Console.WriteLine(item);
      }       
       Console.ReadKey();   
  </code></pre>
  
  <p>But this only print de names(Html,body,font,input,br and font).</p>
  
  <p>My question is How do i do to print the other stuff?</p>