list_value.c
static void
print_element_names(xmlNode * root)
{
	xmlNode *cur_node = NULL;
	char *propName = NULL;

	for (cur_node = root; cur_node; cur_node = cur_node->next) {
		if (cur_node->properties) {
			propName = get_properties_name(cur_node->properties);

			if (0 == strcmp(propName, "accuracy")) {
				printf("Acc: far=%s, mid=%s, near=%s\n",
				get_properties_value(cur_node->properties->next);
				get_properties_value(cur_node->properties->next->next);
			} else {}

		} else {}
		/*
		if (0 == strcmp((char *)cur_node->name, "accuracy")) {

			char *far = (char *) cur_node->properties->children->content;
			char *mid = (char *) cur_node->properties->next->children->content;
			char *near = (char *) cur_node->properties->next->next->children->content;
			printf("Acc: far=%s, mid=%s, near=%s\n", far, mid, near);
		} else {}
		*/
		print_element_names(cur_node->children);
	}
}
/**
 * print_element_names:
 * @root: the initial xml node to consider.
 *
 * Prints the names of the all the xml elements
 * that are siblings or children of a given xml node.
 */
@root: the initial xml node to consider.

Prints the names of the all the xml elements
that are siblings or children of a given xml node.
@root : the initial xml node to consider . Prints the names of the all the xml elements that are siblings or children of a given xml node .
static void
print_element_names(xmlNode * root)
{
	xmlNode *cur_node = NULL;
	char *propName = NULL;
	for (cur_node = root; cur_node; cur_node = cur_node->next) {
		if (cur_node->properties) {
			propName = get_properties_name(cur_node->properties);
			if (0 == strcmp(propName, "accuracy")) {
				printf("Acc: far=%s, mid=%s, near=%s\n",
				get_properties_value(cur_node->properties->next);
				get_properties_value(cur_node->properties->next->next);
			} else {}
		} else {}
		print_element_names(cur_node->children);
	}
}
static void print_element_names ( xmlNode * root ) { xmlNode * cur_node = NULL ; char * propName = NULL ; for ( cur_node = root ; cur_node ; cur_node = cur_node -> next ) { if ( cur_node -> properties ) { propName = get_properties_name ( cur_node -> properties ) ; if ( 0 == strcmp ( propName , " " ) ) { printf ( " \n " , get_properties_value ( cur_node -> properties -> next ) ; get_properties_value ( cur_node -> properties -> next -> next ) ; } else { } } else { } print_element_names ( cur_node -> children ) ; } }
print_element_names:
 @root: the initial xml node to consider.
print_element_names : @root : the initial xml node to consider .
/*
		if (0 == strcmp((char *)cur_node->name, "accuracy")) {

			char *far = (char *) cur_node->properties->children->content;
			char *mid = (char *) cur_node->properties->next->children->content;
			char *near = (char *) cur_node->properties->next->next->children->content;
			printf("Acc: far=%s, mid=%s, near=%s\n", far, mid, near);
		} else {}
		*/