title: C# with HTML Tags
body: <p>I have a website that will read in particular XML style file with PHP and display some content. The people updating the website aren't so techincally minded and so I was hoping to create a program coverting a Powerpoint into the type of XML I'm looking for. </p>
  
  <p>I convert the PowerPoint -> RTF -> HTML. A sample output is below:</p>
  
  <pre><code>&lt;p style="text-align:center;"&gt;&lt;span style="background-color:#FFFFFF;font-family:Calibri font-size:44pt;"&gt;Title 1&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;&lt;span style="background-color:#FFFFFF;font-family:Calibri;font-size:32pt;"&gt;Data in here.&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;p&gt;&lt;span style="background-color:#FFFFFF;font-family:Calibri;font-size:32pt;"&gt;More Data.&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  </code></pre>
  
  <p>I wish to read this HTMl line-by-line, interpreting tags and creating my own file out of the data.</p>
  
  <p><strong>I.e:</strong> Every tag with a particular tag will be classed as a title, then anything with another particular tag will be classed as data. </p>
  
  <p>Example Ouptut:</p>
  
  <pre><code>&lt;FILE&gt;
      &lt;ITEM&gt;
          &lt;TITLE&gt;Title 1&lt;/TITLE&gt;
          &lt;DATA&gt;&lt;p&gt;Data in here&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;More Data.&lt;/p&gt;&lt;/DATA&gt;
      &lt;/ITEM&gt;
  &lt;/FILE&gt;
  </code></pre>
  
  <p>(How) can this be done?</p>
  
  <p>Note: <strong><em>I am not looking for how to remove all tags: <a href="https://stackoverflow.com/questions/785715/how-can-i-strip-html-tags-from-a-string-in-asp-net">Like here</a> and <a href="https://stackoverflow.com/questions/787932/using-c-sharp-regular-expressions-to-remove-html-tags">and here</a></em></strong></p>
  
  <p>Note2: <strong><em>The Powerpoint does not have a fixed font/font-size. If possible, I'd like it to be completely sytle independant. If this would not work, could it be done with a fixed template in PowerPoint so every title and data section would be the same, thus having the same tags?</em></strong></p>