private function createDomXpath()
    {
        $xpath = new \DOMXPath($this->document);

        if ($this->xml_mode) { // register all name spaces
            foreach ($xpath->query('namespace::*') as $node) {
                if ($node->prefix !== 'xml') {
                    $xpath->registerNamespace($node->prefix, $node->namespaceURI);
                }
            }
        }

        return $xpath;
    }
private function createDomXpath()
    {
        $xpath = new \DOMXPath($this->document);

        if ($this->xml_mode) { // register all name spaces
            foreach ($xpath->query('namespace::*') as $node) {
                if ($node->prefix !== 'xml') {
                    $xpath->registerNamespace($node->prefix, $node->namespaceURI);
                }
            }
        }

        return $xpath;
    }
private function createDomXpath ( ) { $ xpath = new \ DOMXPath ( $ this -> document ) ; if ( $ this -> xml_mode ) { // register all name spaces foreach ( $ xpath -> query ( 'namespace::*' ) as $ node ) { if ( $ node -> prefix !== 'xml' ) { $ xpath -> registerNamespace ( $ node -> prefix , $ node -> namespaceURI ) ; } } } return $ xpath ; }
Create dom xpath instance

@return \DOMXPath
Create dom xpath instance