public function resolveNamespace($shortNs)
    {
        if (!($this->dom instanceof \DOMDocument)) {
            throw new RuntimeException("DOM is not initialized");
        }

        if (!is_array($this->namespaces)) {
            $this->namespaces = $this->getDocNamespaces($this->dom);
        }

        if (array_key_exists($shortNs, $this->namespaces)) {
            return $this->namespaces[$shortNs];
        } else {
            return $shortNs;
        }
    }
public function resolveNamespace($shortNs)
    {
        if (!($this->dom instanceof \DOMDocument)) {
            throw new RuntimeException("DOM is not initialized");
        }

        if (!is_array($this->namespaces)) {
            $this->namespaces = $this->getDocNamespaces($this->dom);
        }

        if (array_key_exists($shortNs, $this->namespaces)) {
            return $this->namespaces[$shortNs];
        } else {
            return $shortNs;
        }
    }
public function resolveNamespace ( $ shortNs ) { if ( ! ( $ this -> dom instanceof \ DOMDocument ) ) { throw new RuntimeException ( "DOM is not initialized" ) ; } if ( ! is_array ( $ this -> namespaces ) ) { $ this -> namespaces = $ this -> getDocNamespaces ( $ this -> dom ) ; } if ( array_key_exists ( $ shortNs , $ this -> namespaces ) ) { return $ this -> namespaces [ $ shortNs ] ; } else { return $ shortNs ; } }
Resolve short namespace to long, or return the same code if not found

@param unknown_type $shortNs

@return string Long namespace
Resolve short namespace to long or return the same code if not found