xmlAddChild(new_parent, xml_node);
add_node_copy(new_parent, xml_node);
addResource(xmlNodePtr cib, cibResource *xml_node){	int add_res = 0;	const char * id = NULL;	const char * type = NULL;	xmlNodePtr new_parent = NULL;	FNIN();		id = xmlGetProp(xml_node, XML_ATTR_ID);	type = xmlGetProp(xml_node, XML_CIB_ATTR_NODETYPE);		if (id == NULL || strlen(id) < 1)		add_res = -1;	else if (findResource(cib, ID(xml_node)) != NULL)		add_res = -2;	else if (type == NULL || strlen(type) < 1)		add_res = -3;	else {		new_parent = get_object_root(XML_CIB_TAG_RESOURCES, cib);		if(new_parent == NULL) {			// create it?			add_res = -4;		} else {			xmlAddChild(new_parent, xml_node);		}	}	FNRET(add_res);}