axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_node_set_attribute ( axlNode node,
const char *  attribute,
const char *  value 

Allows to configure an xml attribute on the given node.

1 <complex attr1='value'>
2  ..
3 </complex>

It is not allowed to store the same attribute twice inside the same node. If the function detects that a node is being set to have the same attribute name several times, then the attribute will be silently not added.

Values for the attribute name (attribute) and its associated value can be deallocated once the function finish. This function will perform a local copy.

nodeThe axlNode where the attribute will be installed.
attributeThe attribute name to configure. This value can't be NULL.
valueThe value associated to the attribute to be configured. This value can't be NULL.

References axl_false, axl_free(), AXL_LEVEL_CRITICAL, AXL_LEVEL_DEBUG, axl_node_has_invalid_chars(), axl_return_if_fail, and axl_strdup().