public function getResultMessage() { $xpath = $this->xPath(); $result = $xpath->query('/epp:epp/epp:response/epp:result/epp:msg'); if (is_object($result) && $result->length > 0) { return trim($result->item(0)->nodeValue); } else { return null; } }