load('C:\cars.xml');
$xpath = new DOMXPath($doc);
$res1 = $xpath->query('//Car/Segments/Segment[@ID="Avensis2"]/Price');
print $res1->item(0)->nodeValue . "
\n";
$xml = new SimpleXMLElement(file_get_contents('C:\cars.xml'));
$res2 = $xml->xpath('//Car/Segments/Segment[@ID="Avensis2"]/Price');
print $res2[0] . "
\n";
?>