DLLIMPORT char *Attribute_Name( void *_attribute ) { char* ret_val = NULL; if( _attribute != NULL ) { ret_val = (char*)scew_attribute_name( (scew_attribute*)_attribute ); } return ret_val; }
DLLIMPORT char *Attribute_Name_By_Index( void *_element, int Index ) { scew_attribute* attr; attr = scew_attribute_by_index( (scew_element*)_element, Index ); if( NULL != attr ) return (char*)scew_attribute_name( attr ); else return ""; }
static void print_attributes (scew_element *element) { if (element != NULL) { /** * Iterates through the element's attribute list, printing the * pair name-value. */ scew_list *list = scew_element_attributes (element); while (list != NULL) { scew_attribute *attribute = scew_list_data (list); scew_printf (_XT(" %s=\"%s\""), scew_attribute_name (attribute), scew_attribute_value (attribute)); list = scew_list_next (list); } } }