axlItem* axl_item_new ( AxlItemType  type,
axlPointer  data 
)

Allows to create an axlItem, with the provided type and holding the provided data.

The function won't configure the parent node holding the item. There is an alternative API that allows to create an axlItem without performing a copy: axl_item_new_ref.

Parameters:
type The type that will represent the axlItem created.
data Data associated to the axlItem. In the case the axlItem being created will represent content (ITEM_CONTENT), an entity ref (ITEM_REF), a comment (ITEM_COMMENT) or cdata (ITEM_CDATA), the function will create a local copy. In the case of a ITEM_NODE, the function will copy the entire node, and all its childs.
Returns:
A newly allocated axlItem with no parent and holding the data provided.