axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_doc_set_root ( axlDoc doc,
axlNode root 
)

Allows to configure the document root for the given axlDoc instance.

Every xml document has a xml node root. This is the first node, that holds all childs. This function allows to configure that xml document root. See also axl_doc_get_root.

Remember that previous document root will not be deallocated so, the user space must take care about previous reference.

Parameters
docThe axlDoc where the document root will be configured.
rootThe axlNode used to configure the new document root. The reference received can be null. In this case, it is considered that the root node is being unset.

References axl_return_if_fail.

Referenced by axl_node_remove(), and axl_node_replace().