src/Dom/Document.php
private function getNamespaces()
    {
      $this->namespaces = array();

      $nodeList = $this->documentElement->getElementsByTagName('*');

      foreach($nodeList as $node)
      {
        if (strlen($node->prefix) && strlen($node->namespaceURI) && !in_array($node->prefix, $this->namespaces))
          $this->namespaces[$node->prefix] = $node->namespaceURI;
      }

      return $this->namespaces;
    }
private function getNamespaces()
    {
      $this->namespaces = array();

      $nodeList = $this->documentElement->getElementsByTagName('*');

      foreach($nodeList as $node)
      {
        if (strlen($node->prefix) && strlen($node->namespaceURI) && !in_array($node->prefix, $this->namespaces))
          $this->namespaces[$node->prefix] = $node->namespaceURI;
      }

      return $this->namespaces;
    }
private function getNamespaces ( ) { $ this -> namespaces = array ( ) ; $ nodeList = $ this -> documentElement -> getElementsByTagName ( '*' ) ; foreach ( $ nodeList as $ node ) { if ( strlen ( $ node -> prefix ) && strlen ( $ node -> namespaceURI ) && ! in_array ( $ node -> prefix , $ this -> namespaces ) ) $ this -> namespaces [ $ node -> prefix ] = $ node -> namespaceURI ; } return $ this -> namespaces ; }
Get the list of namespaces of this Document

@return array
Get the list of namespaces of this Document