Xml/Transformer.php
protected function collateNamespaces(\DOMNode $node)
    {
        if ($this->config['useNamespaces'] && $node->namespaceURI 
            && ! array_key_exists($node->namespaceURI, $this->namespaces)) {
            $this->namespaces[$node->namespaceURI] = $node->lookupPrefix($node->namespaceURI);
        }
    }
protected function collateNamespaces(\DOMNode $node)
    {
        if ($this->config['useNamespaces'] && $node->namespaceURI 
            && ! array_key_exists($node->namespaceURI, $this->namespaces)) {
            $this->namespaces[$node->namespaceURI] = $node->lookupPrefix($node->namespaceURI);
        }
    }
protected function collateNamespaces ( \ DOMNode $ node ) { if ( $ this -> config [ 'useNamespaces' ] && $ node -> namespaceURI && ! array_key_exists ( $ node -> namespaceURI , $ this -> namespaces ) ) { $ this -> namespaces [ $ node -> namespaceURI ] = $ node -> lookupPrefix ( $ node -> namespaceURI ) ; } }
Get the namespace of the supplied node, and add it to the list of known namespaces for this document
@param \DOMNode $node
Get the namespace of the supplied node and add it to the list of known namespaces for this document