I am not able to get text. I need the price <meta itemprop="price" content="28.99"/>
Tried with this XPath:
<?php
header('Content-Type: text/html; charset=utf-8');
$urlCT = "https://www.instant-gaming.com/es/834-comprar-key-steam-pro-evolution-soccer-2016/";
$ch = curl_init($urlCT);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$cl = curl_exec($ch);
$dom = new DOMDocument();
@$dom->loadHTML($cl);
$xpath = new DOMXpath($dom);
$xpath->registerXpathNamespace('xhtml' , 'http://www.w3.org/1999/xhtml');
$eltitulo = $xpath->query('//xhtml:meta[@itemprop=\"price\"]/@content');
$titulo = $eltitulo->item($x)->nodeValue;
echo $titulo;
?>
How I can get the price xpath? (28.99€)
Thank you.