Exemple #1
0
 /**
  * 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;
 }
Exemple #2
0
 /**
  * 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;
 }