axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
char * axl_node_get_content_copy ( axlNode node,
int *  content_size 
)

Allows to get a copy for the content stored inside the given axlNode reference.

This function works the same way than axl_node_get_content but returning a copy from the internal content, that the caller is responsible of deallocating it.

Parameters
nodeThe axlNode where the content is being required.
content_sizeAn optional reference to an integer variable where the content size will be returned. The function will return the content size (if the variable is defined) ranging from 0 up to the content size.
Returns
A newly allocated string representing the node content.

References axl_new, axl_node_get_content(), and axl_strdup().

Referenced by axl_node_get_content_trans().