title: How to parse an HTML node's attributes
body: <p>I use C# and need to parse an HTML to read the attributes into key value pairs.
  e.g given the following HTML snippet <br></p>
  
  <pre><code>&lt;DIV myAttribute style="BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; BORDER-TOP: medium none" id=my_ID anotherAttribNamedDIV class="someclass"&gt;
  </code></pre>
  
  <p>Please note that the attributes can be<br>
  1. key="value" pairs e.g <code>class="someclass"</code><br>
  2. key=value pairs e.g <code>id=my_ID</code> (no quotes for values)<br>
  3. plain attributes e.g <code>myAttribute</code>, which doesn't have a "value"<br></p>
  
  <p>I need to store them into a dictionary with key value pairs as follows<br>
  <code>key=myAttribute value=""</code><br>
  <code>key=style value="BORDER-BOTTOM: medium none; BACKGROUND-COLOR: transparent; BORDER-TOP: medium none"</code><br>
  <code>key=id value="my_ID"</code><br>
  <code>key=anotherAttribNamedDIV value=""</code><br>
  <code>key=class value="someclass"</code><br></p>
  
  <p>I am looking for regular expressions to do this.</p>