PhpOffice\PhpPresentation\Tests\XmlDocument::getNodeList PHP Method

getNodeList() public method

Get node list
public getNodeList ( string $path, string $file = 'word/document.xml' ) : DOMNodeList
$path string
$file string
return DOMNodeList
    public function getNodeList($path, $file = 'word/document.xml')
    {
        if ($this->dom === null || $file !== $this->file) {
            $this->getFileDom($file);
        }
        if (null === $this->xpath) {
            $this->xpath = new \DOMXpath($this->dom);
        }
        return $this->xpath->query($path);
    }