PHP XPath ile i xml dosyasında custumers arama:
$this->xpath->query(/custumer/new[id="222"])->item(0)->nodeValue;
Bu müşteri xml dosyada yokmuş ama, ben hata alıyorum:
Notice: Trying to get property of non-object in D:\www\test.php on line 17
Bu hatayı önlemek için nasıl?