axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axlItem* axl_item_copy ( axlItem item,
axlNode set_parent 

Copy the reference provided creating a newly allocated reference, including the content inside.

itemThe item to copy.
set_parentOptionally, allows to provide the parent to be configured to the item created. This is really required while copying items that contains nodes.
A newly allocated axlItem reference, containing the same data (a deep copy) and optionally configured with the provided parent.

References axl_item_get_type(), axl_new, axl_node_copy(), axl_pi_copy(), axl_return_val_if_fail, axl_strdup(), axl_true, ITEM_CDATA, ITEM_COMMENT, ITEM_CONTENT, ITEM_PI, and ITEM_REF.

Referenced by axl_node_copy().