title: xpath with HTML5 and PHP
body: <p>I'm having a problem to use XPath with HTML5 in PHP.
  I'm using this code but it's not working with HTML5 elements, someone can help me?</p>
  
  <pre><code>$dom = new DomDocument;
  $dom-&gt;loadHTMLFile($url);
  $xpath = new DomXPath($dom);
  $main = $xpath-&gt;query("//object");
  
  foreach ($main as $i =&gt; $a) 
  {
      echo $a-&gt;nodeValue;
  }
  </code></pre>
  
  <p>I want to take the object element, this one:</p>
  
  <pre><code>&lt;object type="application/x-shockwave-flash" data="" width="700" height="400"&gt;
  </code></pre>