protected function getAttribute(\DOMElement $node, $name)
    {
        if ($this->rootNSWorkaround()) {
            return $node->getAttribute($name);
        }

        return $node->getAttributeNS(self::NS, $name);
    }
protected function getAttribute(\DOMElement $node, $name)
    {
        if ($this->rootNSWorkaround()) {
            return $node->getAttribute($name);
        }

        return $node->getAttributeNS(self::NS, $name);
    }
protected function getAttribute ( \ DOMElement $ node , $ name ) { if ( $ this -> rootNSWorkaround ( ) ) { return $ node -> getAttribute ( $ name ) ; } return $ node -> getAttributeNS ( self :: NS , $ name ) ; }
Get attribute workaround helper.

Work around method for the fact that DOMDocument adds some mysterious namespache "xmlns:default"
when the root NS is the requested XMLNS and setAttributeNS() is used.

@param \DOMElement $node The node from which the attribute shall be read.

@param string      $name The name of the attribute.

@return string
Get attribute workaround helper .