axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_node_set_comment ( axlNode node,
char *  comment,
int  comment_size 

Allows to configure a new comment (<!– xml comment –>) that will be stored as a child for the node provided.

The comment will be placed at the end of the current child list. So, if you want to place a xml comment before a xml node, call first to this function and then to axl_node_set_child.

nodeThe node that will contain the comment.
commentThe comment to be stored. The function will perform a copy from it.
comment_sizeThe comment size or -1 to make the function to calculate it.

References axl_new, axl_return_if_fail, and ITEM_COMMENT.