xml_attribute pugi::xml_node::append_attribute ( const char *  name  ) 

Add attribute with specified name (for element nodes)

Parameters:
name - attribute name
Returns:
added attribute, or empty attribute if there was an error (wrong node type)