axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_node_deattach ( axlNode node)

Supposing the node is attached to a xml document (axlDoc), this function allows to deattach the node from the document that is holding it.

This function is useful while requiring to reallocate nodes from parent to parent, making the parent node that is holding it to cancel its references to the node, decreasing all internal counts to the node, etc.

If the node isn't attached to any document, the function does nothing.

nodeThe node to deattach.

References axl_false, AXL_LEVEL_DEBUG, axl_node_remove(), and axl_return_if_fail.

Referenced by axl_node_parse(), and axl_node_parse_strings().