doxml Manual Version 0.5: doxml_attr_set()

$Id: setattr.html,v 1.9 1999/07/24 22:04:05 francis Exp $

int doxml_attr_set(doxml_atom* element,
                   const char* namespace,
                   const char* name,
                   const char* value);

doxml_attr_set() sets an attribute value in an element. name specifies the name of the attribute to set; namespace specifies the namespace in which name is defined; value specifies the value to which to set the attribute (if NULL, the attribute is deleted from the element). The function returns 0 on success, or <0 on error.