title: Object of class DOMNodeList could not be converted to string
body: <p>I got the above error and tried to print out the object to see how I could access the data inside of it but it only echoed    DOMNodeList Object ( ) </p>
  
  <pre><code>function dom() {
  $url = "http://website.com/demo/try.html";
  $contents = wp_remote_fopen($url);
  
  $dom = new DOMDocument();
  @$dom-&gt;loadHTML($contents);
  $xpath = new DOMXPath($dom);
  
  $result = $xpath-&gt;evaluate('/html/body/table[0]');
  print_r($result);
      }
  </code></pre>
  
  <p>I'm using Wordpress, thus explains the wp_remote_fopen function.  I'm trying to echo the first table from $url</p>