void axl_node_set_attribute ( axlNode node,
const char *  attribute,
const char *  value 
)

Allows to configure an xml attribute to the given node.

Attributes are that piece of the xml node definition that is defined the by pair attr=value. Here is an example of an xml node with an attribute:

 <complex attr1='value'>
   ..
 </complex>

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

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

Parameters:
node The axlNode where the attribute will be installed
attribute The attribute name to configure. This value can't be NULL.
value The value associated to the attribute to be configured. This value can't be NULL.