protected function loadNamespaces(){
        $namespaces = [];
        foreach($this->queryXPath('namespace::*') as $node){
            $name = preg_replace('/xmlns(:)?/', '', $node->nodeName);
            if($name !== 'xml'){//always removed the implicit xml namespace
                $namespaces[$name] = $node->nodeValue;
            }
        }
        ksort($namespaces);
        foreach($namespaces as $name => $uri){
            $this->item->addNamespace($name, $uri);
        }
    }
protected function loadNamespaces(){
        $namespaces = [];
        foreach($this->queryXPath('namespace::*') as $node){
            $name = preg_replace('/xmlns(:)?/', '', $node->nodeName);
            if($name !== 'xml'){//always removed the implicit xml namespace
                $namespaces[$name] = $node->nodeValue;
            }
        }
        ksort($namespaces);
        foreach($namespaces as $name => $uri){
            $this->item->addNamespace($name, $uri);
        }
    }
protected function loadNamespaces ( ) { $ namespaces = [ ] ; foreach ( $ this -> queryXPath ( 'namespace::*' ) as $ node ) { $ name = preg_replace ( '/xmlns(:)?/' , '' , $ node -> nodeName ) ; if ( $ name !== 'xml' ) { //always removed the implicit xml namespace $ namespaces [ $ name ] = $ node -> nodeValue ; } } ksort ( $ namespaces ) ; foreach ( $ namespaces as $ name => $ uri ) { $ this -> item -> addNamespace ( $ name , $ uri ) ; } }
Load xml namespaces into the item model
Load xml namespaces into the item model