private function _getNodeAttributes(DOMElement $pNode)
    {
        $attributes = array();
        if ($pNode->attributes->length) {
            foreach ($pNode->attributes as $key => $attr) {
                $attributes[$key] = $attr->value;
            }
        }

        return $attributes;
    }