/** * @param string $expression * @param \DomNode $context * @param bool $registerNodeNs * @return \DOMNodeList */ public function query($expression, DomNode $context = NULL, $registerNodeNs = TRUE) { if (is_null($context)) { $context = $this->getDefaultContext(); } return parent::query($expression, $context, $registerNodeNs); }
/** * @return \Blar\Dom\DomXPath */ public function createXPath() { $xpath = new DomXPath($this->ownerDocument); $xpath->setDefaultContext($this); return $xpath; }