Axl Item: A basic item abstraction that represents a child node that could be another node, content, xml comment, etc.


Functions

bool axl_item_are_equal (axlItem *item, axlItem *item2, bool trimmed)
 Allows to check if both items are equal, considering the item type and the content associated to the item type.
axlItemaxl_item_copy (axlItem *item, axlNode *set_parent)
 Copies the reference provided creating a newly allocated copy, including he content inside.
void axl_item_free (axlItem *item, bool dealloc)
 Allows to release the memory hold the item reference provided, and the value stored inside it.
char * axl_item_get_content (axlItem *item, int *size)
 Convenience API that allows to get the content stored (and its size) from the received axlItem, supposing it is storing an ITEM_CONTENT, ITEM_CDATA, ITEM_COMMENT or ITEM_REF.
axlPointer axl_item_get_data (axlItem *item)
 Returns the item data that is stored inside the axlItem received.
axlDocaxl_item_get_doc (axlItem *item)
 Allows to get the reference to the document that is holding the provided item without taking into consideration the item type.
axlItemaxl_item_get_first_child (axlNode *node)
 Allows to get the very first child item stored on the provided axlNode.
axlItemaxl_item_get_last_child (axlNode *node)
 Allows to get the very last child item stored on the provided axlNode.
axlItemaxl_item_get_next (axlItem *item)
 Allows to get the following element that is next to the item reference provided (axlItem), at the same level.
axlNodeaxl_item_get_parent (axlItem *item)
 Allows to get the parent that is containing the axlItem provider.
axlItemaxl_item_get_previous (axlItem *item)
 Allows to get the following element that is previous to the item reference provided (axlItem), at the same level.
AxlItemType axl_item_get_type (axlItem *item)
 Allows to get the item type that represents the reference received (axlItem).
axlItemaxl_item_new (AxlItemType type, axlPointer data)
 Allows to create an axlItem, with the provided type and holding the provided data.
axlItemaxl_item_new_ref (AxlItemType type, axlPointer data)
 Allows to create an axlItem, with the provided type and holding the provided data.
axlItemaxl_item_node_holder (axlNode *node)
 Allows to get the axlItem reference that is holding the node provided.
axlItemaxl_item_node_next (axlNode *node)
 Returns the following axlItem to the axlNode reference, in the same level.
axlItemaxl_item_node_previous (axlNode *node)
 Returns the previous axlItem to the axlNode reference, in the same level.
void axl_item_remove (axlItem *item, bool dealloc)
 Allows to remove the axlItem instance from the document that is currently linked, optionally deallocating the memory used by the structure.
void axl_item_replace (axlItem *item, axlItem *new_item, bool dealloc)
 Allows to replace the content held by the axlItem reference with a new axlItem, updating all references, and optionally, deallocating the memory used by the previous node.
void axl_item_set_after (axlItem *item, AxlItemType type, axlPointer data)
 Allows to configure xml content just after the item used as reference.
void axl_item_transfer_childs_after (axlNode *old_parent, axlItem *item_ref)
 Allows to transfer all childs contained inside the provided axlNode (old_parent) placed after the provided axlItem (item_ref) on the same level.