All pastes #447460 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-19 01:41 UTC
rendered paste body
tatic void print_element_names(xmlNode * a_node)
{
    xmlNode *cur_node = NULL;
    xmlNode *test = NULL;
    cur_node = a_node;
    while(cur_node != NULL)
    {
        printf("%s\n", cur_node->name);
        if(cur_node->children != NULL)
        {
            print_element_names(cur_node->children);

        }
        cur_node = cur_node->next;
    }
}