ixml/src/node.c
static void ixmlNode_freeSingleNode(
	/*! [in] The node to free. */
	IXML_Node *nodeptr)
{
	IXML_Element *element = NULL;

	if (nodeptr != NULL) {
		if (nodeptr->nodeName != NULL) {
			free(nodeptr->nodeName);
		}
		if (nodeptr->nodeValue != NULL) {
			free(nodeptr->nodeValue);
		}
		if (nodeptr->namespaceURI != NULL) {
			free(nodeptr->namespaceURI);
		}
		if (nodeptr->prefix != NULL) {
			free(nodeptr->prefix);
		}
		if (nodeptr->localName != NULL) {
			free(nodeptr->localName);
		}
		switch (nodeptr->nodeType ) {
		case eELEMENT_NODE:
			element = (IXML_Element *)nodeptr;
			free(element->tagName);
			break;
		default:
			break;
		}
		free(nodeptr);
	}
}
/*!
 * \brief Frees a node content.
 */
\brief Frees a node content.
\ brief Frees a node content .
static void ixmlNode_freeSingleNode(
	IXML_Node *nodeptr)
{
	IXML_Element *element = NULL;
	if (nodeptr != NULL) {
		if (nodeptr->nodeName != NULL) {
			free(nodeptr->nodeName);
		}
		if (nodeptr->nodeValue != NULL) {
			free(nodeptr->nodeValue);
		}
		if (nodeptr->namespaceURI != NULL) {
			free(nodeptr->namespaceURI);
		}
		if (nodeptr->prefix != NULL) {
			free(nodeptr->prefix);
		}
		if (nodeptr->localName != NULL) {
			free(nodeptr->localName);
		}
		switch (nodeptr->nodeType ) {
		case eELEMENT_NODE:
			element = (IXML_Element *)nodeptr;
			free(element->tagName);
			break;
		default:
			break;
		}
		free(nodeptr);
	}
}
static void ixmlNode_freeSingleNode ( IXML_Node * nodeptr ) { IXML_Element * element = NULL ; if ( nodeptr != NULL ) { if ( nodeptr -> nodeName != NULL ) { free ( nodeptr -> nodeName ) ; } if ( nodeptr -> nodeValue != NULL ) { free ( nodeptr -> nodeValue ) ; } if ( nodeptr -> namespaceURI != NULL ) { free ( nodeptr -> namespaceURI ) ; } if ( nodeptr -> prefix != NULL ) { free ( nodeptr -> prefix ) ; } if ( nodeptr -> localName != NULL ) { free ( nodeptr -> localName ) ; } switch ( nodeptr -> nodeType ) { case eELEMENT_NODE : element = ( IXML_Element * ) nodeptr ; free ( element -> tagName ) ; break ; default : break ; } free ( nodeptr ) ; } }
\brief Frees a node content.
\ brief Frees a node content .
/*! [in] The node to free. */