public static function getAttribute($node, $attribute_name, $default_value = null)
    {
        $value = $node->getAttribute($attribute_name);

        if (! isset($value) || strlen($value) == 0)
        {
            $value = $default_value;
        }

        return $value;
    }