title: Getting the <ul> <li> and <b> tags in htmlAgilityPack VB.NET
body: <p>I honestly don't know how to do this, and I am very stuck. My code is probably not worth sharing, but I will try my best to ask the question.</p>
  
  <pre><code>&lt;div class="pricing-table"&gt;
      &lt;div class="span4"&gt;
          &lt;div class="plan"&gt;
              &lt;h3&gt;PPTP &lt;span&gt;$0&lt;/span&gt;&lt;/h3&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;b&gt;IP:&lt;/b&gt; " (hidden)"&lt;/li&gt;
                  &lt;li&gt;&lt;b&gt;Username:&lt;/b&gt; " Guest"&lt;/li&gt;
                  &lt;li&gt;&lt;b&gt;Password:&lt;/b&gt; " (hidden)"&lt;/li&gt;
                  &lt;li&gt;&lt;b&gt;Unlimited&lt;/b&gt; " Bandwidth"&lt;/li&gt;
                  &lt;li&gt;&lt;b&gt;Torrents&lt;/b&gt; " Allowed"&lt;/li&gt;
                  &lt;li&gt;&lt;b&gt;No&lt;/b&gt; " Logging"&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>(This is the second one)</p>
  
  <pre><code>&lt;div class="span4"&gt;
      &lt;div class="plan most-popular"&gt;
          &lt;h3&gt;Open&lt;span&gt;$0&lt;/span&gt;&lt;/h3&gt;
          &lt;div class="plan-ribbon-wrapper"&gt;
              &lt;div class="plan-ribbon"&gt;
                  Popular
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;b&gt;Username:&lt;/b&gt; user&lt;/li&gt;
              &lt;li&gt;&lt;b&gt;Password:&lt;/b&gt; (hidden)&lt;/li&gt;
              &lt;li&gt;&lt;b&gt;TCP&lt;/b&gt; 80, 443&lt;/li&gt;
              &lt;li&gt;&lt;b&gt;UDP&lt;/b&gt; 53, 40000&lt;/li&gt;
              &lt;li&gt;&lt;b&gt;Unlimited&lt;/b&gt; Bandwidth&lt;/li&gt;
              &lt;li&gt;&lt;b&gt;Torrents&lt;/b&gt; Allowed&lt;/li&gt;
              &lt;li&gt;&lt;b&gt;No&lt;/b&gt; Logging&lt;/li&gt;
          &lt;/ul&gt;&lt;a class="btn btn-large btn-primary" href=
          "%20(hidden)"&gt;Download&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;ul&gt;
      &lt;li&gt;&lt;b&gt;Username:&lt;/b&gt; user&lt;/li&gt;
      &lt;li&gt;&lt;b&gt;Password:&lt;/b&gt; (hidden)&lt;/li&gt;
      &lt;li&gt;&lt;b&gt;TCP&lt;/b&gt; 80, 443&lt;/li&gt;
      &lt;li&gt;&lt;b&gt;UDP&lt;/b&gt; 53, 40000&lt;/li&gt;
      &lt;li&gt;&lt;b&gt;Unlimited&lt;/b&gt; Bandwidth&lt;/li&gt;
      &lt;li&gt;&lt;b&gt;Torrents&lt;/b&gt; Allowed&lt;/li&gt;
      &lt;li&gt;&lt;b&gt;No&lt;/b&gt; Logging&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Using this HTML code, I want to copy the username and password and put it into a label on my form.</p>
  
  <p>Here is my code</p>
  
  <pre><code>Imports HtmlAgilityPack
  Public Class Form1
  Dim Prev_Pass, Prev_User, Currt_Pass, Currt_User, Info
  Dim counter As Integer
  Dim web As New HtmlWeb()
  Dim htmldoc As HtmlAgilityPack.HtmlDocument = New HtmlAgilityPack.HtmlDocument
  Dim htmlnodes As HtmlAgilityPack.HtmlNodeCollection = Nothing
  Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      htmldoc = web.Load("website")
      htmlnodes = htmldoc.DocumentNode.SelectNodes("//div[@class=""pricing-table""]")
      For Each node As HtmlAgilityPack.HtmlNode In htmlnodes
          Dim releaseNode = node.SelectSingleNode("//div[@class=""plan most-popular""]")
              Info = releaseNode.SelectSingleNode("//ul/li/b[contains(text(), 'Username: ')]").InnerText
      Next
      Label3.Text = Info
  End Sub
  End Class
  </code></pre>