/** * Initializes this node and registers the XPath object. * * @param DOMElement $node * @param DOMXPath $xpath */ public function __construct(DOMElement $node, DOMXPath $xpath) { parent::__construct($node); $this->xpath = $xpath; }
/** * Initializes this node and registers the XPath object. * * @param DOMElement $node * @param DOMXPath $xpath */ public function __construct(DOMElement $node, DOMDocument $document) { parent::__construct($node); $this->document = $document; }