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