public function addNamespace($prefix, $uri)
    {
        if (empty($prefix))
            throw new \InvalidArgumentException('The prefix may not be emtpy or NULL.');
        if (empty($uri))
            throw new \InvalidArgumentException('The uri may not be empty or NULL.');

        $this->namespaces[$prefix] = $uri;

        return $this;
    }