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:
doc The axlDoc where the document root will be configured.
root The 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.