axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Functions
Axl Item: A basic item abstraction that represents a child node that could be another node, content, xml comment, etc.

Functions

axl_bool axl_item_are_equal (axlItem *item, axlItem *item2, axl_bool trimmed)
 Allows to check if both items are equal, considering the item type and the content associated to the item type. More...
 
axl_bool axl_item_are_equal_full (axlItem *item, axlItem *item2, axl_bool trimmed, axlError **error)
 Allows to check if both items are equal, considering the item type and the content associated to the item type. More...
 
axlItemaxl_item_copy (axlItem *item, axlNode *set_parent)
 Copy the reference provided creating a newly allocated reference, including the content inside. More...
 
void axl_item_free (axlItem *item, axl_bool dealloc)
 Allows to release the memory hold the item reference provided, and the value stored inside it. More...
 
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. More...
 
axlPointer axl_item_get_data (axlItem *item)
 Returns the item data that is stored inside the axlItem received. More...
 
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. More...
 
axlItemaxl_item_get_first_child (axlNode *node)
 Allows to get the very first child item stored on the provided axlNode. More...
 
axlItemaxl_item_get_last_child (axlNode *node)
 Allows to get the very last child item stored on the provided axlNode. More...
 
axlItemaxl_item_get_next (axlItem *item)
 Allows to get the following element that is next to the item reference provided (axlItem), and at the same level. More...
 
axlNodeaxl_item_get_parent (axlItem *item)
 Allows to get the parent that is containing the axlItem provider. More...
 
axlItemaxl_item_get_previous (axlItem *item)
 Allows to get the following element that is previous to the item reference provided (axlItem), and at the same level. More...
 
AxlItemType axl_item_get_type (axlItem *item)
 Allows to get the item type that represents the reference received (axlItem). More...
 
axlItemaxl_item_new (AxlItemType type, axlPointer data)
 Allows to create an axlItem, with the provided type and holding the provided data. More...
 
axlItemaxl_item_new_ref (AxlItemType type, axlPointer data)
 Allows to create an axlItem, with the provided type and holding the provided data. More...
 
axlItemaxl_item_node_holder (axlNode *node)
 Allows to get the axlItem reference that is holding the node provided. More...
 
axlItemaxl_item_node_next (axlNode *node)
 Returns the following axlItem to the axlNode reference, in the same level. More...
 
axlItemaxl_item_node_previous (axlNode *node)
 Returns the previous axlItem to the axlNode reference, in the same level. More...
 
void axl_item_remove (axlItem *item, axl_bool dealloc)
 Allows to remove the axlItem instance from the document that is currently holding it, optionally deallocating the memory used by the structure. More...
 
void axl_item_replace (axlItem *item, axlItem *new_item, axl_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 item reference. More...
 
void axl_item_set_after (axlItem *item, AxlItemType type, axlPointer data)
 Allows to configure xml content just after the item used as reference. More...
 
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. More...
 

Detailed Description