axlDoc * axl_node_get_doc ( axlNode node  ) 

Allows to get the xml document (axlDoc) where the provided xml node is stored.

Parameters:
node The node that is being requested to return is xml document reference.
Returns:
The xml document reference or NULL if it is not already set. Once a xml node is created, it must be added to the xml document either because it is the parent node, in that case axl_doc_set_root must be used, or either because the node is being added as a child of a xml node that is the already added root node or a child of it.