public function __construct($xmldoc) { $this->_xmldoc = $xmldoc; $this->_xpath = new DOMXpath($this->_xmldoc); }