Example #1
0
static void
parse_file(char *filename, sixtp* parser)
{
    printf("STARTING: %s\n", filename);
    sixtp_parse_file(parser, filename, NULL, (gpointer)stdout, NULL);
    printf("\nENDING: %s\n", filename);
    sixtp_destroy(parser);
}
Example #2
0
static xmlNodePtr
grab_file_doc(const char *filename)
{
    sixtp *parser;
    xmlNodePtr ret;
    gpointer parse_result = NULL;

    parser = sixtp_dom_parser_new(just_dom_tree_end_handler, NULL, NULL);

    sixtp_parse_file(parser, filename, NULL, &ret, &parse_result);

    return ret;
}