title: PHP SimpleHtmlDom xpath
body: <p>I am trying to get the contents of the node in the webpage I am parsing. Here is my code:</p>
  
  <pre><code>include('simplehtmldom_1_5/simple_html_dom.php');
  // get DOM from URL or file
  $feedUrl = "http://www.yellowpages.com/md/cpa-tax?menu_search=false&amp;page=1&amp;refinements%5Bfacet_clicked%5D=HeadingText&amp;refinements%5Bheadingtext%5D%5B%5D=Accountants-Certified+Public&amp;refinements%5Bheadingtext%5D%5B%5D=Tax+Return+Preparation&amp;refinements%5Bheadingtext%5D%5B%5D=Tax+Return+Preparation-Business";
  $html = file_get_html($feedUrl);
  $xpath = "/html/body/div[5]/div[1]/div[1]/div[1]/div[5]/div[3]/div[1]/div[1]/div[1]/div[1]/a[1]/div[1]/div[1]/div[3]/div[1]/div[2]/h3[1]/div[1]/a[1]";
  foreach($html-&gt;find($xpath) as $e) 
      echo $e-&gt;title . '&lt;br&gt;';
  </code></pre>
  
  <p>In this example, I am trying to get the name "Tax Experience CPA, Inc" from the webpage. The issue is the array returned by find($xpath) is always empty. When I open Google Chrome and search for the node with that xpath, I am able to exactly find the node I want. But this is not working in my code. There must be an issue with the path I am using, but I can't figure out what it is. I have searched and searched but I haven't been able to find what I am doing wrong.
  Please help.</p>