rem: 3 );
add: 0 );
context: gboolean recuperation_exercices_xml ( xmlNodePtr node_exercices ){        while ( node_exercices )    {	/* on va recuperer ici les generalites des exercices */	if ( !strcmp ( node_exercices -> name,		       "Generalites" ))	{	    xmlNodePtr node_generalites;	    node_generalites = node_exercices -> children;	    while ( node_generalites )	    {		if ( !strcmp ( node_generalites -> name,			       "Nb_exercices" ))		    nb_exercices = my_atoi ( xmlNodeGetContent ( node_generalites ));		if ( !strcmp ( node_generalites -> name,			       "No_dernier_exercice" ))		    no_derniere_exercice = my_atoi ( xmlNodeGetContent ( node_generalites ));		node_generalites = node_generalites -> next;	    }	}	/* on va recuperer ici les exercices */	if ( !strcmp ( node_exercices -> name,		       "Detail_des_exercices" ))	{	    xmlNodePtr node_detail;	    liste_struct_exercices = NULL;	    node_detail = node_exercices -> children;	    while ( node_detail )	    {		struct struct_exercice *exercice;		exercice = calloc ( 1,				    sizeof ( struct struct_exercice ));		if ( node_detail -> type != XML_TEXT_NODE )		{		    exercice -> no_exercice = my_atoi ( xmlGetProp ( node_detail,								     "No" ));		    exercice -> nom_exercice = xmlGetProp ( node_detail,							    "Nom" );		    if ( strlen ( xmlGetProp ( node_detail,					       "Date_debut" )))		    {			gchar **pointeur_char;			pointeur_char = g_strsplit ( xmlGetProp ( node_detail,								  "Date_debut" ),						     "/",						     3 );			exercice -> date_debut = g_date_new_dmy ( my_atoi ( pointeur_char[0] ),								  my_atoi ( pointeur_char[1] ),								  my_atoi ( pointeur_char[2] ));			g_strfreev ( pointeur_char );		    }		    else			exercice -> date_debut = NULL;		    if ( strlen ( xmlGetProp ( node_detail,					       "Date_fin" )))		    {			gchar **pointeur_char;			pointeur_char = g_strsplit ( xmlGetProp ( node_detail,								  "Date_fin" ),						     "/",						     3 );			exercice -> date_fin = g_date_new_dmy ( my_atoi ( pointeur_char[0] ),								my_atoi ( pointeur_char[1] ),								my_atoi ( pointeur_char[2] ));			g_strfreev ( pointeur_char );		    }		    else			exercice -> date_fin = NULL;		    exercice -> affiche_dans_formulaire = my_atoi ( xmlGetProp ( node_detail,										 "Affiche" ));		    liste_struct_exercices = g_slist_append ( liste_struct_exercices,							      exercice );		}		node_detail = node_detail -> next;	    }	}	node_exercices = node_exercices -> next;    }    return TRUE;}