ti copio e incollo la struttura cosi come è definita nelle specifiche:
codice:
typedef enum  {
	TEXT_NODE,
	TAG_NODE
} node_type;

struct node {
	char *name;
	list children;
	node_type type;
	list attributes;
	int id;
};

typedef struct node *node;