Lines Matching refs:xpath
405 $nodes = $this->xpath("//*[namespace-uri()='$namespaceUri']");
411 LogUtility::error("Internal Error on xpath: {$e->getMessage()}");
415 $nodes = $this->xpath("//@*[namespace-uri()='$namespaceUri']");
423 LogUtility::error("Internal Error on xpath: {$e->getMessage()}");
428 $xpath = new DOMXPath($this->getDomDocument());
429 $DOMNodeList = $xpath->query("namespace::*", $this->getDomDocument()->ownerDocument);
444 * We can't query with the library {@link XmlDocument::xpath()} function because
445 * we register in the xpath the namespace
447 $xpath = new DOMXPath($this->getDomDocument());
450 // See https://www.w3.org/TR/1999/REC-xpath-19991116/#axes
452 $DOMNodeList = $xpath->query('namespace::*', $this->getDomDocument()->ownerDocument);
480 function xpath($query, DOMElement $contextNode = null): DOMNodeList
488 * It is necessary to use xpath to handle documents which have default namespaces.
489 * The xpath expression will search for items with no namespace by default.
718 $xpath = $this->cssSelectorToXpath($selector);
719 $domNodeList = $this->xpath($xpath);
777 public function xpathFirstDomElement(string $xpath): DOMElement
779 $domList = $this->xpath($xpath);