title: C# HtmlAgilityPack to get the values in Report
body: <p>I want to get the two values in the battery report  html</p>
  <p>Because I tried to make a tool to turn off the monitor without hibernating, developed with .Net 4.5</p>
  <p><a href="https://i.stack.imgur.com/0MBTT.png" rel="nofollow noreferrer">Microsoft Battery Report</a></p>
  <p><a href="https://i.stack.imgur.com/MZVcy.png" rel="nofollow noreferrer">Microsoft Battery Report Code</a></p>
  <p>html code</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;explanation&quot;&gt;
    Information about each currently installed battery
  &lt;/div&gt;
  &lt;table&gt;
    &lt;colgroup&gt;&lt;col style=&quot;width: 15em;&quot;/&gt;&lt;col style=&quot;width: 14em;&quot;/&gt;&lt;/colgroup&gt;
    &lt;thead&gt;&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td&gt;BATTERY 1&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;NAME&lt;/span&gt;&lt;/td&gt;&lt;td&gt;SurfaceBattery&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;MANUFACTURER&lt;/span&gt;&lt;/td&gt;&lt;td&gt;DYN&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;SERIAL NUMBER&lt;/span&gt;&lt;/td&gt;&lt;td&gt;0105332950&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;CHEMISTRY&lt;/span&gt;&lt;/td&gt;&lt;td&gt;LION&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;DESIGN CAPACITY&lt;/span&gt;&lt;/td&gt;&lt;td&gt;43,200 mWh &lt;/td&gt;&lt;/tr&gt;
    &lt;tr style=&quot;height:0.4em;&quot;&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;FULL CHARGE CAPACITY&lt;/span&gt;&lt;/td&gt;&lt;td&gt;37,250 mWh&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;label&quot;&gt;CYCLE COUNT&lt;/span&gt;&lt;/td&gt;&lt;td&gt;20&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  <p>my code</p>
  <pre class="lang-cs prettyprint-override"><code>HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument();
  htmlDoc.OptionFixNestedTags = true;
  htmlDoc.Load(saveLocation);
  HtmlNode designrow = htmlDoc.DocumentNode.SelectSingleNode(&quot;//table[@id='test']/tr[last()]/td&quot;);
      {
          if (designrow != null) {
              designcap.Text = designrow.InnerText;
          }
      }
  </code></pre>
  <p>The values I need to get are 43,200 mWh and 37,250 mWh</p>