public function getAttribute($attrName)
    {
        $element = $this->getDomElement();
        if (strpos($attrName, ':') === false) {
            return $element->hasAttribute($attrName) ? $element->getAttribute($attrName) : null;
        } else {
            list($prefix, $name) = explode(':', $attrName);
            $namespace = $this->getNamespace($prefix);

            return $element->hasAttributeNS($namespace, $name)
                ? $element->getAttributeNS($namespace, $name)
                : null;
        }
    }