public function __construct(\DOMXPath $xpath) { $this->_xpath = $xpath; $this->_document = $xpath->document; }