examples/libxml.c
hubbub_error remove_child(void *ctx, void *parent, void *child, void **result)
{
	xmlNode *chld = (xmlNode *) child;

	xmlUnlinkNode(chld);

	*result = child;

	ref_node(ctx, *result);

	return HUBBUB_OK;
}
/**
 * Remove a node from another's child list
 *
 * \param ctx     Our context
 * \param parent  The node to remove from
 * \param child   The node to remove
 * \param result  Location to receive removed node
 * \return HUBBUB_OK on success, appropriate error otherwise
 *
 * Postcondition: if successful, result's reference count is increased by 1
 */


if successful, result's reference count is increased by 1
if successful result ' s reference count is increased by 1
hubbub_error remove_child(void *ctx, void *parent, void *child, void **result)
{
	xmlNode *chld = (xmlNode *) child;
	xmlUnlinkNode(chld);
	*result = child;
	ref_node(ctx, *result);
	return HUBBUB_OK;
}
hubbub_error remove_child ( void * ctx , void * parent , void * child , void * * result ) { xmlNode * chld = ( xmlNode * ) child ; xmlUnlinkNode ( chld ) ; * result = child ; ref_node ( ctx , * result ) ; return HUBBUB_OK ; }
Remove a node from another's child list
 \param ctx     Our context
 \param parent  The node to remove from
 \param child   The node to remove
 \param result  Location to receive removed node
 \return HUBBUB_OK on success, appropriate error otherwise
Remove a node from another ' s child list \ param ctx Our context \ param parent The node to remove from \ param child The node to remove \ param result Location to receive removed node \ return HUBBUB_OK on success appropriate error otherwise