C# - How to find the custom tag's Name and Text from Html
<p>I have requirement where I have input Html like this - </p>

<pre><code>  &lt;col name="col1"&gt;Text1&lt;/col&gt;
  &lt;col name="col2"&gt;Text2&lt;/col&gt;
  &lt;col name="col3"&gt;text3&lt;/col&gt;
</code></pre>

<p>Now I have to parse this Html and create a csv file with below output - </p>

<pre><code>col1,col2,col3
Text1,Text2,text3
</code></pre>

<p>Please let me know how can this be achieved in C#.</p>
