title: XPath query not working(need find by text)
body: <p>Hello sow i working with HtmlAgilityPack and i have this problem all elemnts that i need have the same stractior and the same class exept the text of the span like in the code i have span with text Amount and Date sow i need to build link like this </p>
  
  <pre><code>"//span(with text=Amount)[div and contains(@class,'detailsValue ')]");
  </code></pre>
  
  <p>I need to get data 1,700,000.00 from the div that in the span with text 'Amount' and 14.04.2014 from the div that in the span with text 'Date' 
  Any ideas?</p>
  
  <p>This what i have now</p>
  
  <pre><code>List&lt;string&gt; OriginalAmount = GetListDataFromHtmlSourse(PageData, "//span[div and contains(@class,'detailsValue ')]");
  
   private static List&lt;string&gt; GetListDataFromHtmlSourse(string HtmlSourse, string link)
      {
          List&lt;string&gt; data = new List&lt;string&gt;();
          HtmlAgilityPack.HtmlDocument DocToParse = new HtmlAgilityPack.HtmlDocument();
          DocToParse.LoadHtml(HtmlSourse);
  
          foreach (HtmlNode node in DocToParse.DocumentNode.SelectNodes(link))
  
          {
              if (node.InnerText != null) data.Add(node.InnerText);
  
          }
  
          return data;
      }
         &lt;div class=" depositDetails cellHeight float " style="height: 37px;"&gt;
          &lt;span class=" detailsName darkgray "&gt;Amount&lt;/span&gt;
          &lt;br&gt;
          &lt;div class="detailsValue float" style="direction:rtl"&gt;1,700,000.00 &lt;/div&gt;
          &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="BoxCellHeight float"&gt;
          &lt;div class="cellHeight separatorvertical float" style="height: 46px;"&gt; &lt;/div&gt;
          &lt;div class=" depositDetails cellHeight float " style="height: 40px;"&gt;
          &lt;span class=" detailsName darkgray "&gt;Date&lt;/span&gt;
          &lt;br&gt;
          &lt;div class="detailsValue float"&gt;14.04.2014&lt;/div&gt;
          &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>