title: CSQuery select elements
body: <p>I have an html file as following:</p>
  
  <pre><code>&lt;h3&gt;
      &lt;div id='type'&gt;
          Type 1
      &lt;/div&gt;
  
      &lt;div id='price'&gt;
          127.76;
      &lt;/div&gt;
  &lt;/h3&gt;
  
   &lt;h3&gt;
      &lt;div id='type'&gt;
          Type 2
      &lt;/div&gt;
  
      &lt;div id='price'&gt;
          127.76;
      &lt;/div&gt;
  &lt;/h3&gt;
  </code></pre>
  
  <p>Now I want to use CSQuery to extract those types and price into a List, here is the code I'm working on :</p>
  
  <p>var doc = CQ.Create(htmlfile);</p>
  
  <pre><code>var types= (from listR in doc["&lt;h3&gt;"] //get the h3 tag
      select new TypeTest
      {
          Typename =  listR.GetAttribute("#type"),
          Price = listR.GetAttribute("#price")
      }
      ).ToList();
  return types;
  </code></pre>
  
  <p>However, I couldn't get the details as I wish, as I'm not sure about the doc[] value when I put it as h3. the html file cannot be modified.</p>