public function getDomainHosts() { $ns = null; $xpath = $this->xPath(); $result = $xpath->query('/epp:epp/epp:response/epp:resData/domain:infData/domain:host'); foreach ($result as $host) { $ns[] = new eppHost($host->nodeValue); } return $ns; }