CRM_DEBUG2("Siblings: %p", a_node->next); CRM_DEBUG2("Parent: %p", a_node->parent); CRM_DEBUG2("Doc: %p", a_node->doc); CRM_DEBUG2("Children: %p", a_node->children);
free_xml(xmlNodePtr a_node){	FNIN();	if (a_node == NULL)		; // nothing to do	else if (a_node->doc != NULL)		xmlFreeDoc(a_node->doc);	else	{		CRM_DEBUG2("Siblings: %p", a_node->next);		CRM_DEBUG2("Parent: %p", a_node->parent);		CRM_DEBUG2("Doc: %p", a_node->doc);		CRM_DEBUG2("Children: %p", a_node->children);				/* make sure the node is unlinked first */		xmlUnlinkNode(a_node);#if 0	/* set a new doc, wont delete without one */		xmlDocPtr foo = xmlNewDoc("1.0");		xmlDocSetRootElement(foo, a_node);		xmlSetTreeDoc(a_node,foo);		CRM_DEBUG2("Siblings: %p", a_node->next);		CRM_DEBUG2("Parent: %p", a_node->parent);		CRM_DEBUG2("Doc: %p", a_node->doc);		CRM_DEBUG2("Children: %p", a_node->children);		xmlFreeDoc(foo);#else		xmlFreeNode(a_node);#endif	}		FNOUT();}