/* Returns CR_OK upon successfull completion, an error code otherwise. Note that this method uses cr_om_parser_parse_file() so both methods have the same return values.  */
enum CRStatus cr_om_parser_simply_parse_file(const guchar *a_file_path, enum CREncoding a_enc, CRStyleSheet **a_result)
/* Returns CR_OK upon successfull completion, an error code otherwise. Note that this method uses cr_om_parser_parse_file() so both methods have the same return values.  */
enum CRStatus cr_om_parser_simply_parse_file(const guchar *a_file_path, enum CREncoding a_enc, CRStyleSheet **a_result)
{
        CROMParser *parser = NULL;
        enum CRStatus status = CR_OK;
        parser = cr_om_parser_new (NULL);
        if (!parser) {
                cr_utils_trace_info ("Could not allocate om parser");
                cr_utils_trace_info ("System may be out of memory");
                return CR_ERROR;
        }
        status = cr_om_parser_parse_file (parser, a_file_path,
                                          a_enc, a_result);
        if (parser) {
                cr_om_parser_destroy (parser);
                parser = NULL;
        }
        return status;
}