Enlightenment CVS committal Author : werkt Project : e17 Module : proto
Dir : e17/proto/exml/src Modified Files: exml.c Log Message: Updated to reflect api changes in ecore_data. =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/exml/src/exml.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- exml.c 25 Sep 2004 22:00:26 -0000 1.4 +++ exml.c 4 Jan 2005 23:37:09 -0000 1.5 @@ -644,28 +644,18 @@ xmlBufferFree( buf ); } -/* temp val for callback */ -static xmlTextWriter *t_writer; - -static void _exml_write_attribute( void *val ) -{ - Ecore_Hash_Node *node; - - node = val; - - xmlTextWriterWriteAttribute( t_writer, node->key, node->value ); -} - static void _exml_write_element(EXML_Node *node, xmlTextWriter *writer) { EXML_Node *child; + Ecore_Hash_Node *hash_node; xmlTextWriterStartElement( writer, node->tag ); - t_writer = writer; - ecore_hash_for_each_node( node->attributes, _exml_write_attribute ); - t_writer = NULL; + ecore_hash_goto_first( node->attributes ); + + while( (hash_node = ecore_hash_next( node->attributes )) ) + xmlTextWriterWriteAttribute( writer, hash_node->key, hash_node->value ); if( node->value ) xmlTextWriterWriteString( writer, node->value ); ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs