static void load_modules(llof_mlist *modules, xmlNode *modules_node) { xmlNode *module_node = modules_node->children; while(module_node != NULL) { // Get the attributes from module_node and add a module to the modules linked list. xmlNode *function_node = module_node->children; while(function_node != NULL) { // Get the attributes from function_node and add a function to the function linked list // inside of the new module you just added. function_node = function_node->next; } // Go to the next module. module_node = module_node->next; } }